fix examples

This commit is contained in:
Wastl Kraus 2025-10-01 13:44:25 +02:00
parent b7ea13b2ef
commit 51c1d345e8
2 changed files with 6 additions and 6 deletions

View File

@ -177,7 +177,7 @@ void loop()
// Get Motor RPM if bidirectional and armed // Get Motor RPM if bidirectional and armed
if (IS_BIDIRECTIONAL && isArmed) if (IS_BIDIRECTIONAL && isArmed)
{ {
dshot_result_t telem_result = motor01.getTelemetry(MOTOR01_MAGNET_COUNT); dshot_result_t telem_result = motor01.getTelemetry();
printDShotResult(telem_result); printDShotResult(telem_result);
} }
@ -194,7 +194,7 @@ void loop()
if (IS_BIDIRECTIONAL && isArmed) if (IS_BIDIRECTIONAL && isArmed)
{ {
dshot_result_t telem_result = motor01.getTelemetry(MOTOR01_MAGNET_COUNT); dshot_result_t telem_result = motor01.getTelemetry();
if (telem_result.success && telem_result.motor_rpm > 0) if (telem_result.success && telem_result.motor_rpm > 0)
{ {
current_rpm = String(telem_result.motor_rpm); current_rpm = String(telem_result.motor_rpm);
@ -494,7 +494,7 @@ void handleSerialInput(const String &input)
{ {
if (isArmed) if (isArmed)
{ {
dshot_result_t result = motor01.getTelemetry(MOTOR01_MAGNET_COUNT); dshot_result_t result = motor01.getTelemetry();
printDShotResult(result); printDShotResult(result);
} }
else else

View File

@ -145,7 +145,7 @@ void loop()
// Get Motor RPM if bidirectional and armed // Get Motor RPM if bidirectional and armed
if (IS_BIDIRECTIONAL && isArmed) if (IS_BIDIRECTIONAL && isArmed)
{ {
dshot_result_t telem_result = motor01.getTelemetry(MOTOR01_MAGNET_COUNT); dshot_result_t telem_result = motor01.getTelemetry();
printDShotResult(telem_result); printDShotResult(telem_result);
} }
@ -160,7 +160,7 @@ void loop()
if (IS_BIDIRECTIONAL && isArmed) if (IS_BIDIRECTIONAL && isArmed)
{ {
dshot_result_t telem_result = motor01.getTelemetry(MOTOR01_MAGNET_COUNT); dshot_result_t telem_result = motor01.getTelemetry();
if (telem_result.success && telem_result.motor_rpm > 0) if (telem_result.success && telem_result.motor_rpm > 0)
{ {
current_rpm = String(telem_result.motor_rpm); current_rpm = String(telem_result.motor_rpm);
@ -263,7 +263,7 @@ void handleSerialInput(const String &input)
{ {
if (isArmed) if (isArmed)
{ {
dshot_result_t result = motor01.getTelemetry(MOTOR01_MAGNET_COUNT); dshot_result_t result = motor01.getTelemetry();
printDShotResult(result); printDShotResult(result);
} }
else else