From c824f5f46caf166b4caa44f95f05c88ef6abaa6b Mon Sep 17 00:00:00 2001 From: Wastl Kraus Date: Wed, 26 Mar 2025 13:49:56 +0100 Subject: [PATCH] Add return value ...lol --- examples/dshot300/dshot300.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } }