♻️ refactor: unify UI notification methods into single notify() function

Consolidates soundBuzzer() and triggerVibration() into a unified notify() method
that handles both audio and haptic feedback based on UIEventType.
This commit is contained in:
csrutil
2025-09-17 08:53:50 +08:00
parent 2da50882c0
commit 043f37a08e
6 changed files with 26 additions and 40 deletions

View File

@@ -41,9 +41,6 @@ public:
void disableSerial() { _serial->disable(); }
virtual void msgRead(int msgcount) = 0;
virtual void newMsg(uint8_t path_len, const char* from_name, const char* text, int msgcount) = 0;
virtual void soundBuzzer(UIEventType bet = UIEventType::none) = 0;
#ifdef PIN_VIBRATION
virtual void triggerVibration() = 0;
#endif
virtual void notify(UIEventType t = UIEventType::none) = 0;
virtual void loop() = 0;
};