# HG changeset patch # User Jacob Alexander # Date 1414394777 25200 # Node ID 68d2e5c96e72097b8a511297d37a3499aa397230 # Parent e4bb14a0168ae41675a1c72103782458bab9a3ca USB Macro Output sequences now working! - Tested both with Boot and NKRO modes diff -r e4bb14a0168a -r 68d2e5c96e72 Output/pjrcUSB/output_com.c --- a/Output/pjrcUSB/output_com.c Sun Oct 26 15:07:44 2014 -0700 +++ b/Output/pjrcUSB/output_com.c Mon Oct 27 00:26:17 2014 -0700 @@ -401,6 +401,17 @@ USBKeys_Changed |= USBKeyChangeState_TertiaryKeys; } + // Received 0x00 + // This is a special USB Code that internally indicates a "break" + // It is used to send "nothing" in order to break up sequences of USB Codes + else if ( key == 0x00 ) + { + USBKeys_Changed |= USBKeyChangeState_All; + + // Also flush out buffers just in case + Output_flushBuffers(); + break; + } // Invalid key else { diff -r e4bb14a0168a -r 68d2e5c96e72 Output/pjrcUSB/output_com.h --- a/Output/pjrcUSB/output_com.h Sun Oct 26 15:07:44 2014 -0700 +++ b/Output/pjrcUSB/output_com.h Mon Oct 27 00:26:17 2014 -0700 @@ -53,6 +53,7 @@ USBKeyChangeState_TertiaryKeys = 0x08, USBKeyChangeState_System = 0x10, USBKeyChangeState_Consumer = 0x20, + USBKeyChangeState_All = 0x3F, } USBKeyChangeState;