Удалено условие

//            if ((PBATT_CHECK_16 >= V_SEND_LOW) && (PBATT_CHECK_16 <= V_SEND_HIGH)) {
//                isSendingCAN = true;
//            } else {
//                isSendingCAN = false;
//            }
This commit is contained in:
cfif 2026-11-09 14:59:45 +03:00
parent 0261dd54eb
commit 95940a38e9
1 changed files with 6 additions and 6 deletions

View File

@ -640,7 +640,7 @@ uint8_t getVehicleTypeArmoredFromVin(tModelTask *env, const char* vin) {
}
volatile bool isSendingCAN = 0;
volatile bool isSendingCAN = true;
#define SLEEP_TIME 5000
@ -696,11 +696,11 @@ static _Noreturn void ModelTask_Thread(tModelTask *env) {
uint16_t PBATT_CHECK_16 = (uint16_t) (((float)rtDW.ADC_Data_Model.PBATT_CHECK * 33.4375f / 4095.0f) * 10.0f);
uint16_t IGN_CHECK_16 = (uint16_t) (((float)rtDW.ADC_Data_Model.IGN_ANS * 27.75f / 4095.0f) * 10.0f);
if ((PBATT_CHECK_16 >= V_SEND_LOW) && (PBATT_CHECK_16 <= V_SEND_HIGH)) {
isSendingCAN = true;
} else {
isSendingCAN = false;
}
// if ((PBATT_CHECK_16 >= V_SEND_LOW) && (PBATT_CHECK_16 <= V_SEND_HIGH)) {
// isSendingCAN = true;
// } else {
// isSendingCAN = false;
// }
//конец--------------------------------------------------ВХОД МОДЕЛИ ADC------------------------------------------------