+
+ // Adjust ScanCode offset
+ if ( Connect_receive_ScanCodeDeviceId > 0 )
+ {
+ // This variable is in generatedKeymaps.h
+ extern uint8_t InterconnectOffsetList[];
+ Connect_receive_ScanCodeBuffer.scanCode = Connect_receive_ScanCodeBuffer.scanCode + InterconnectOffsetList[ Connect_receive_ScanCodeDeviceId - 1 ];
+ }
+
+ // ScanCode receive debug
+ dbug_print("");
+ printHex( Connect_receive_ScanCodeBuffer.type );
+ print(" ");
+ printHex( Connect_receive_ScanCodeBuffer.state );
+ print(" ");
+ printHex( Connect_receive_ScanCodeBuffer.scanCode );
+ print( NL );
+
+ // Send ScanCode to macro module
+ // TODO
+ //Macro_triggerState( &Connect_receive_ScanCodeBuffer, 1 );