cleanup
This commit is contained in:
parent
ab38112ed9
commit
1a6e65badb
22
gui.c
22
gui.c
@ -7,6 +7,17 @@
|
||||
uint16_t x, y;
|
||||
unsigned char buffer[32];
|
||||
|
||||
static void TouchPadThread(uint16_t updateInterval) {
|
||||
chRegSetThreadName("GUI");
|
||||
|
||||
while(TRUE) {
|
||||
x = tpReadX();
|
||||
y = tpReadY();
|
||||
|
||||
chThdSleepMilliseconds(updateInterval);
|
||||
}
|
||||
}
|
||||
|
||||
static void buttonThread(struct button_t *a) {
|
||||
uint16_t x0, y0, x1, y1;
|
||||
|
||||
@ -25,17 +36,6 @@ static void buttonThread(struct button_t *a) {
|
||||
}
|
||||
}
|
||||
|
||||
static void TouchPadThread(uint16_t updateInterval) {
|
||||
chRegSetThreadName("GUI");
|
||||
|
||||
while(TRUE) {
|
||||
x = tpReadX();
|
||||
y = tpReadY();
|
||||
|
||||
chThdSleepMilliseconds(updateInterval);
|
||||
}
|
||||
}
|
||||
|
||||
static void barThread(struct bar_t *a) {
|
||||
uint16_t percent = 0, value = 0, value_old = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user