Skip to content

Commit a0f6018

Browse files
committed
Fix bad state comparison.
1 parent 0f8b5e1 commit a0f6018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SerialPrograms/Source/Controllers/KeyboardInput/KeyboardInput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void KeyboardInputController::thread_loop(){
132132
now = current_time();
133133
try{
134134
// current.print();
135-
if (current == last && last_press + std::chrono::milliseconds(1000) > now){
135+
if (*current == *last && last_press + std::chrono::milliseconds(1000) > now){
136136
// cout << "No state change." << endl;
137137
break;
138138
}

0 commit comments

Comments
 (0)