diff --git a/src/shared/actuators/Servo/Servo.cpp b/src/shared/actuators/Servo/Servo.cpp index 24e09cd8ee9fa078567dc6693b1e5762b31d0614..ceffefd2963bda1cb9984ea73974b692d62df2ba 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()}; }