![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
2011
Diff: CAN/function_CAN.cpp
- Revision:
- 243:30896263bd8b
- Parent:
- 242:b235d67d25ba
- Child:
- 244:e9c5ec04e378
--- a/CAN/function_CAN.cpp Thu Apr 07 06:18:38 2022 +0000 +++ b/CAN/function_CAN.cpp Mon Jun 13 08:48:55 2022 +0000 @@ -675,8 +675,8 @@ void CAN_RX_HANDLER() { - if (LED > 0) LED = 0; - else LED = 1; +// if (LED > 0) LED = 0; +// else LED = 1; can.read(msg); @@ -703,7 +703,7 @@ if(SUPPLY_PRESSURE_UPDATE == 1) { int16_t temp_REF_Ps = (int16_t) (msg.data[6] | msg.data[7] << 8); - PRES_SUPPLY = ((float)temp_REF_Ps) / 100.0; + PRES_SUPPLY = ((float)temp_REF_Ps) / 100.0f; if(PRES_SUPPLY<35.0f) PRES_SUPPLY = 35.0f; else if(PRES_SUPPLY>210.0f) PRES_SUPPLY = 210.0f; } else {