fixed some minor bugs (NO_PARNO for sending values of all ESW, remove inverting ESP pins..)

This commit is contained in:
2025-11-06 11:03:38 +03:00
parent 24ddc7e1a6
commit bd62eba7da
6 changed files with 51 additions and 17 deletions

View File

@@ -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;
}