Fixed broken Magstripe project and TeensyHID bootloader.
[pub/USBasp.git] / Projects / Magstripe / Magstripe.c
index 0e10053..aef7812 100644 (file)
@@ -316,13 +316,13 @@ bool GetNextReport(USB_KeyboardReport_Data_t* ReportData)
                if (OddReport)\r
                {\r
                        /* Set the report key code to the key code for the next data bit */\r
-                       ReportData->KeyCode[0] = BitBuffer_GetNextBit(Buffer) ? KEY_1 : KEY_0;\r
+                       ReportData->KeyCode = BitBuffer_GetNextBit(Buffer) ? KEY_1 : KEY_0;\r
                        \r
                        /* If buffer is now empty, a new line must be sent instead of the terminating bit */\r
                        if (!(Buffer->Elements))\r
                        {\r
                                /* Set the keycode to the code for an enter key press */\r
-                               ReportData->KeyCode[0] = KEY_ENTER;                             \r
+                               ReportData->KeyCode = KEY_ENTER;                                \r
                        }\r
                }\r
 \r