Move to proper I2C handling (#7848)

* Rework I2C handling
This commit is contained in:
3djc
2020-07-28 19:21:33 +02:00
committed by GitHub
parent 9dd8ca8e25
commit 02c4886525
3 changed files with 408 additions and 466 deletions
+3 -2
View File
@@ -19,7 +19,8 @@
*/
#include "opentx.h"
#if defined(RADIO_TX16S)
#if defined(HARDWARE_TOUCH)
#include "touch.h"
#include "tp_gt911.h"
#include <math.h>
#endif
@@ -71,7 +72,7 @@ bool menuRadioDiagAnalogs(event_t event)
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 7 * FH, STR_TOUCH_PANEL);
}
if (touchPanelEvent) {
if (touchPanelEventOccured()) {
touchPanelRead();
lcdDrawNumber(lcdNextPos + 1, MENU_CONTENT_TOP + 7 * FH, touchState.x);
lcdDrawText(lcdNextPos, MENU_CONTENT_TOP + 7 * FH, ", ");