mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
fixed some minor bugs (NO_PARNO for sending values of all ESW, remove inverting ESP pins..)
This commit is contained in:
@@ -139,7 +139,7 @@ static errcodes eswg(CAN_message *msg){
|
||||
}
|
||||
uint32_t curval = get_ab_esw();
|
||||
if(no > INMAX) MSGP_SET_U32(msg, curval);
|
||||
else MSGP_SET_U32(msg, (curval & (1<<no)) ? 0 : 1);
|
||||
else MSGP_SET_U32(msg, (curval & (1<<no)) ? 1 : 0);
|
||||
FIXDL(msg);
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user