Skip to content

Commit 86c71fd

Browse files
committed
Fix keyboard report.
1 parent bfee758 commit 86c71fd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

SerialPrograms/Source/Controllers/SerialPABotBase/SerialPABotBase_Routines_HID_Keyboard.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ int register_message_converters_HID_Keyboard(){
3333
// (people entering passwords)
3434
#if 0
3535
ss << std::hex;
36-
ss << ", 0x" << params->report.key[0];
37-
ss << ", 0x" << params->report.key[1];
38-
ss << ", 0x" << params->report.key[2];
39-
ss << ", 0x" << params->report.key[3];
40-
ss << ", 0x" << params->report.key[4];
41-
ss << ", 0x" << params->report.key[5];
36+
ss << ", 0x" << (int)params->report.key[0];
37+
ss << ", 0x" << (int)params->report.key[1];
38+
ss << ", 0x" << (int)params->report.key[2];
39+
ss << ", 0x" << (int)params->report.key[3];
40+
ss << ", 0x" << (int)params->report.key[4];
41+
ss << ", 0x" << (int)params->report.key[5];
4242
ss << std::dec;
4343
#endif
4444

SerialPrograms/Source/Controllers/StandardHid/StandardHid_Keyboard_SerialPABotBase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ void SerialPABotBase_Keyboard::execute_state(
183183
break;
184184
}
185185
report.key[c] = *iter;
186+
++iter;
186187
}
187188

188189
// Divide the controller state into smaller chunks that fit into the report

0 commit comments

Comments
 (0)