make it possible to run via code

This commit is contained in:
davidscherer
2023-06-04 17:50:49 +02:00
parent d48136cb1a
commit 9f80b5e11c
35 changed files with 3565 additions and 3560 deletions

View File

@ -136,7 +136,7 @@ int main(void)
uint16_t temperatures[N_SENSORS];
AMS_Loop();
while (1){
if(BMS_IN_TEST_MODE == 1 ){ ////&& PENDING_MESSAGE_HANDLE == 1
if(BMS_IN_TEST_MODE == 1 ){ ////&& PENDING_MESSAGE_HANDLE == 1
testLoop(&canTestData);
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
@ -150,8 +150,9 @@ int main(void)
if(BMS_IN_TEST_MODE != 1){
ams_can_send_heartbeat(); //for testing
}
}
}
}
/* USER CODE END 3 */
}