From 73ad9878764f53729f56d7533e085a5d38c704b7 Mon Sep 17 00:00:00 2001 From: Alberto Nidasio <alberto.nidasio@skywarder.eu> Date: Thu, 5 May 2022 23:33:50 +0200 Subject: [PATCH] [Servo] Fixed host catch test --- src/shared/actuators/Servo/Servo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/shared/actuators/Servo/Servo.cpp b/src/shared/actuators/Servo/Servo.cpp index 24e09cd8e..ceffefd29 100644 --- a/src/shared/actuators/Servo/Servo.cpp +++ b/src/shared/actuators/Servo/Servo.cpp @@ -102,7 +102,12 @@ float Servo::getPosition360Deg() { return getPosition() * 3600; } ServoData Servo::getState() { return {TimestampTimer::getInstance().getTimestamp(), + +#ifndef COMPILE_FOR_HOST pwm.getTimer().getTimerNumber(), static_cast<uint8_t>(pwmChannel), +#else + 0, 0, +#endif getPosition()}; } -- GitLab