mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
Merge "stm32l: remove unnecessary inner loop from check_keys_changed()"
This commit is contained in:
@@ -388,14 +388,6 @@ static int check_keys_changed(void)
|
||||
|
||||
/* Check for changes */
|
||||
if (r != raw_state[c]) {
|
||||
int i;
|
||||
for (i = 0; i < 8; ++i) {
|
||||
uint8_t prev = (raw_state[c] >> i) & 1;
|
||||
uint8_t now = (r >> i) & 1;
|
||||
if (prev != now)
|
||||
/* TODO: implement this */
|
||||
; //keyboard_state_changed(i, c, now);
|
||||
}
|
||||
raw_state[c] = r;
|
||||
change = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user