Final Version

This commit is contained in:
Raphael Benistant 2020-04-06 12:25:17 +02:00
parent 9625d6cec5
commit 251b123a6b

View file

@ -644,7 +644,7 @@ void Tasks::StartRobotTaskWithoutWatchdog(void *arg) {
*/
void Tasks::StartRobotTaskWithWatchdog(void *arg) {
int killBatteryOk=0;
int killBatteryOk;
int cpt=1;
Message * msgSend;
@ -659,6 +659,7 @@ void Tasks::StartRobotTaskWithWatchdog(void *arg) {
//Boolean to get the battery
killBatteryOk = 0;
rt_mutex_acquire(&mutex_killBattery, TM_INFINITE);
killBattery=0;
rt_mutex_release(&mutex_killBattery);