diff --git a/glcd/glcd.c b/glcd/glcd.c index 8f3e0ccd..7d0cfb5d 100644 --- a/glcd/glcd.c +++ b/glcd/glcd.c @@ -206,12 +206,10 @@ void lcdClear(uint16_t color) { uint16_t lcdGetPixelColor(uint16_t x, uint16_t y) { struct glcd_msg_get_pixel_color msg; - uint16_t result; msg.action = GLCD_GET_PIXEL_COLOR; msg.x = x; msg.y = y; - msg.color = &result; return chMsgSend(workerThread, (msg_t)&msg); } diff --git a/glcd/glcdWorker.h b/glcd/glcdWorker.h index 14709b8f..04f8a3ed 100644 --- a/glcd/glcdWorker.h +++ b/glcd/glcdWorker.h @@ -83,7 +83,6 @@ struct glcd_msg_get_pixel_color { uint16_t x; uint16_t y; - uint16_t color; }; struct glcd_msg_draw_pixel {