♻️ 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.
Este commit está contenido en:
csrutil
2025-09-17 08:56:18 +08:00
padre 2da50882c0
commit 043f37a08e
Se han modificado 6 ficheros con 26 adiciones y 40 borrados
+1 -4
Ver fichero
@@ -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;
};