remove lines suggested
This commit is contained in:
parent
23787d0e21
commit
7fd7d6bf5c
|
@ -85,25 +85,23 @@ void initialiseADC()
|
|||
|| (((configPage9.enable_secondarySerial == 0) && (configPage9.enable_intcan == 1 && configPage9.intcan_available == 0 )) && (configPage9.caninput_sel[currentStatus.current_caninchannel]&3) == 3)
|
||||
|| (((configPage9.enable_secondarySerial == 0) && (configPage9.enable_intcan == 0)) && ((configPage9.caninput_sel[currentStatus.current_caninchannel]&3) == 3)))
|
||||
{ //if current input channel is enabled as digital local pin check caninput_selxb(bits 2:3) wih &12 and caninput_selxa(bits 0:1) with &3
|
||||
byte pinNumber = (configPage9.Auxinpinb[currentStatus.current_caninchannel]&127);
|
||||
if( pinIsUsed(pinNumber) )
|
||||
{
|
||||
//Do nothing here as the pin is already in use.
|
||||
//Need some method of reporting this back to the user
|
||||
}
|
||||
else
|
||||
{
|
||||
//Channel is active and digital
|
||||
pinMode( pinNumber, INPUT);
|
||||
//currentStatus.canin[14] = 44; Dev test use only!
|
||||
auxIsEnabled = true;
|
||||
}
|
||||
//Channel is active and analog
|
||||
pinMode( pinNumber, INPUT);
|
||||
auxIsEnabled = true;
|
||||
}
|
||||
byte pinNumber = (configPage9.Auxinpinb[currentStatus.current_caninchannel]&127);
|
||||
if( pinIsUsed(pinNumber) )
|
||||
{
|
||||
//Do nothing here as the pin is already in use.
|
||||
//Need some method of reporting this back to the user
|
||||
}
|
||||
else
|
||||
{
|
||||
//Channel is active and digital
|
||||
pinMode( pinNumber, INPUT);
|
||||
//currentStatus.canin[14] = 44; Dev test use only!
|
||||
auxIsEnabled = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static inline void instanteneousMAPReading()
|
||||
|
|
Loading…
Reference in New Issue