Continuous haptic on BIND menu (ACCESS)

This commit is contained in:
Bertrand Songis
2019-09-03 10:54:54 +02:00
parent e657e50de0
commit 38705521cc
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -547,8 +547,10 @@ inline void POPUP_MENU_SELECT_ITEM(uint8_t index)
inline void POPUP_MENU_START(PopupMenuHandler handler) inline void POPUP_MENU_START(PopupMenuHandler handler)
{ {
popupMenuHandler = handler; if (handler != popupMenuHandler) {
AUDIO_KEY_PRESS(); AUDIO_KEY_PRESS();
popupMenuHandler = handler;
}
} }
inline void CLEAR_POPUP() inline void CLEAR_POPUP()
+4 -2
View File
@@ -161,8 +161,10 @@ inline void POPUP_MENU_SELECT_ITEM(uint8_t index)
inline void POPUP_MENU_START(PopupMenuHandler handler) inline void POPUP_MENU_START(PopupMenuHandler handler)
{ {
popupMenuHandler = handler; if (handler != popupMenuHandler) {
AUDIO_KEY_PRESS(); AUDIO_KEY_PRESS();
popupMenuHandler = handler;
}
} }
#endif // _STDLCD_POPUPS_H_ #endif // _STDLCD_POPUPS_H_