Add return value

...lol
This commit is contained in:
Wastl Kraus 2025-03-26 13:49:56 +01:00
parent 7d64234471
commit c824f5f46c
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@
*/ */
#include <Arduino.h> #include <Arduino.h>
#include "DShotRMT.h" #include <DShotRMT.h>
// USB serial port needed for this example // USB serial port needed for this example
const auto USB_SERIAL_BAUD = 115200; const auto USB_SERIAL_BAUD = 115200;
@ -51,5 +51,8 @@ uint16_t readSerialThrottle()
if (USB_Serial.available() > 0) if (USB_Serial.available() > 0)
{ {
return USB_Serial.readStringUntil('\n').toInt(); return USB_Serial.readStringUntil('\n').toInt();
} else
{
return FAILSAFE_THROTTLE;
} }
} }