From dfe5df3a48a9db048ff6f2f17df740485db63c1a Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 28 Mar 2020 12:41:15 +0100 Subject: [PATCH] Changed Syntax --- software/raspberry/superviseur-robot/tasks.cpp | 8 ++++---- software/raspberry/superviseur-robot/tasks.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/software/raspberry/superviseur-robot/tasks.cpp b/software/raspberry/superviseur-robot/tasks.cpp index e5cda8a..f4acecf 100644 --- a/software/raspberry/superviseur-robot/tasks.cpp +++ b/software/raspberry/superviseur-robot/tasks.cpp @@ -150,14 +150,14 @@ void Tasks::Init() { exit(EXIT_FAILURE); } - if (err = rt_sem_create(&sem_allow_StartReceive, NULL, 0, S_FIFO)) { + if (err = rt_sem_create(&sem_allowStartReceive, NULL, 0, S_FIFO)) { cerr << "Error semaphore create: " << strerror(-err) << endl << flush; exit(EXIT_FAILURE); } //Initialization for some specific sem: Allow to run the first time - rt_sem_v(&sem_allow_StartReceive); + rt_sem_v(&sem_allowStartReceive); cout << "Semaphores created successfully" << endl << flush; @@ -325,7 +325,7 @@ void Tasks::ReceiveFromMonTask(void *arg) { rt_sem_p(&sem_barrier, TM_INFINITE); //Wait twin task to die if not first round - rt_sem_p(&sem_allow_StartReceive, TM_INFINITE); + rt_sem_p(&sem_allowStartReceive, TM_INFINITE); //Reinitialize control boolean rt_mutex_acquire(&mutex_killReceiveFromMon, TM_INFINITE); @@ -450,7 +450,7 @@ void Tasks::ReceiveFromMonTask(void *arg) { } - rt_sem_v(&sem_allow_StartReceive); + rt_sem_v(&sem_allowStartReceive); } /** diff --git a/software/raspberry/superviseur-robot/tasks.h b/software/raspberry/superviseur-robot/tasks.h index d50d818..83c57c7 100644 --- a/software/raspberry/superviseur-robot/tasks.h +++ b/software/raspberry/superviseur-robot/tasks.h @@ -115,7 +115,7 @@ private: RT_SEM sem_serverOk; RT_SEM sem_startRobotWithoutWatchdog; RT_SEM sem_startRobotWithWatchdog; - RT_SEM sem_allow_StartReceive; + RT_SEM sem_allowStartReceive; /**********************************************************************/ /* Message queues */