We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf254f5 commit 7ad3ca2Copy full SHA for 7ad3ca2
src/Arduino_Alvik.cpp
@@ -989,9 +989,9 @@ void Arduino_Alvik::set_illuminator(const bool value){
989
}
990
991
void Arduino_Alvik::set_servo_positions(const uint8_t a_position, const uint8_t b_position){
992
+ while (!xSemaphoreTakeRecursive(buffer_semaphore, TICK_TIME_SEMAPHORE));
993
servo_positions[0] = a_position;
994
servo_positions[1] = b_position;
- while (!xSemaphoreTakeRecursive(buffer_semaphore, TICK_TIME_SEMAPHORE));
995
msg_size = packeter->packetC2B('S', a_position, b_position);
996
uart->write(packeter->msg, msg_size);
997
xSemaphoreGiveRecursive(buffer_semaphore);
0 commit comments