From 7305287e57a89aff1f73938b8e707bddea9251a3 Mon Sep 17 00:00:00 2001 From: Lixivial Date: Fri, 11 Aug 2017 10:45:00 -0500 Subject: [PATCH] Invert the logic around image_data so that the color of the image isn't inverted --- Joystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Joystick.c b/Joystick.c index 5e9e085c..4496e3d8 100755 --- a/Joystick.c +++ b/Joystick.c @@ -351,7 +351,7 @@ void GetNextReport(USB_JoystickReport_Input_t* const ReportData) { xpos--; } - if ((image_data[(xpos / 8)+(ypos*40)] & 1 << (xpos % 8)) && (xpos >= 0)) + if (!(image_data[(xpos / 8)+(ypos*40)] & 1 << (xpos % 8)) && (xpos >= 0)) ReportData->Button |= 0x4; if (xpos <= 0 && ypos >= 120-1) done_printing = true;