diff --git a/examples/dshot300/dshot300.ino b/examples/dshot300/dshot300.ino index e0dd884..a8b684c 100644 --- a/examples/dshot300/dshot300.ino +++ b/examples/dshot300/dshot300.ino @@ -8,7 +8,7 @@ */ #include -#include "DShotRMT.h" +#include // USB serial port needed for this example const auto USB_SERIAL_BAUD = 115200; @@ -51,5 +51,8 @@ uint16_t readSerialThrottle() if (USB_Serial.available() > 0) { return USB_Serial.readStringUntil('\n').toInt(); + } else + { + return FAILSAFE_THROTTLE; } }