summaryrefslogtreecommitdiff
path: root/bootloader/mrobe500.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/mrobe500.c')
-rwxr-xr-xbootloader/mrobe500.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/bootloader/mrobe500.c b/bootloader/mrobe500.c
index 2ea9a1817b..c051e54fb6 100755
--- a/bootloader/mrobe500.c
+++ b/bootloader/mrobe500.c
@@ -112,7 +112,7 @@ void mrdebug(void)
112 printf("%d:%d:%d %d %d %d", t->tm_hour, t->tm_min, t->tm_sec, t->tm_mday, t->tm_mon, t->tm_year); 112 printf("%d:%d:%d %d %d %d", t->tm_hour, t->tm_min, t->tm_sec, t->tm_mday, t->tm_mon, t->tm_year);
113 printf("time: %d", mktime(t)); 113 printf("time: %d", mktime(t));
114#endif 114#endif
115 button = button_status(); 115 button = button_get(false);
116 if (button == BUTTON_POWER) 116 if (button == BUTTON_POWER)
117 { 117 {
118 printf("reset"); 118 printf("reset");
@@ -138,14 +138,16 @@ void mrdebug(void)
138// tsc2100_keyclick(); /* doesnt work :( */ 138// tsc2100_keyclick(); /* doesnt work :( */
139 line -= 6; 139 line -= 6;
140 } 140 }
141#if 0 141#if 1
142 if (button&BUTTON_TOUCHPAD) 142 if (button&BUTTON_TOUCHPAD)
143 { 143 {
144 unsigned int data = button_get_last_touch(); 144 unsigned int data = button_get_data();
145 printf("x: %d, y: %d", data>>16, data&0xffff); 145 int x = (data&0xffff0000)>>16, y = data&0x0000ffff;
146 line-=3; 146 reset_screen();
147 lcd_hline(x-5, x+5, y);
148 lcd_vline(x, y-5, y+5);
149 lcd_update();
147 } 150 }
148 else line -=2;
149#endif 151#endif
150 } 152 }
151} 153}