Skip to content

Commit f865e29

Browse files
committed
Remove ESC LED and motor sound APIs
Delete deprecated setESCLedControl and setESCMotorSound functions: remove their declarations from inc/sp140/esc.h and implementations from src/sp140/esc.cpp. These wrappers simply forwarded to esc.setLedControl/esc.setMotorSound and checked escTwaiInitialized; the public interface is being simplified in favor of requestEscStatusLightMode and the queueEscMotorBeep* helpers.
1 parent 278a329 commit f865e29

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

inc/sp140/esc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ bool hasSwHwIncompatError(uint16_t errorCode);
6666
bool hasBootloaderBadError(uint16_t errorCode);
6767

6868
// ESC LED control
69-
void setESCLedControl(const uint16_t *ledData, uint8_t ledNum);
7069
void requestEscStatusLightMode(EscStatusLightMode mode);
7170

7271
// ESC motor beep
73-
void setESCMotorSound(const uint8_t *beepData, uint8_t beepNum);
7472
void queueEscMotorBeepArm();
7573
void queueEscMotorBeepDisarm();
7674

src/sp140/esc.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -376,25 +376,10 @@ bool setupTWAI() {
376376
return true;
377377
}
378378

379-
/**
380-
* Send an LED control sequence to the ESC
381-
* @param ledData Array of packed LED entries (use SineEsc::makeLedControlEntry)
382-
* @param ledNum Number of entries (max 10)
383-
*/
384-
void setESCLedControl(const uint16_t *ledData, uint8_t ledNum) {
385-
if (!escTwaiInitialized) return;
386-
esc.setLedControl(ledData, ledNum);
387-
}
388-
389379
void requestEscStatusLightMode(EscStatusLightMode mode) {
390380
sRequestedStatusLightMode = mode;
391381
}
392382

393-
void setESCMotorSound(const uint8_t *beepData, uint8_t beepNum) {
394-
if (!escTwaiInitialized) return;
395-
esc.setMotorSound(beepData, beepNum);
396-
}
397-
398383
void queueEscMotorBeepArm() {
399384
sPendingEscTone = PendingEscTone::ARM;
400385
}

0 commit comments

Comments
 (0)