Final Version
This commit is contained in:
parent
9625d6cec5
commit
251b123a6b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue