diff options
author | QMK Bot <hello@qmk.fm> | 2022-02-21 08:29:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 08:29:54 -0800 |
commit | 25ba9b41c119fde21b5c996a90a0b28b3e32d271 (patch) | |
tree | a4c3f306b7f837ba50e27f052e5086898f103be8 /drivers | |
parent | a44abeb99ae79e2fc88f3d323477e7408c5baf41 (diff) |
Format code according to conventions (#16421)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ps2/ps2_busywait.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ps2/ps2_busywait.c b/drivers/ps2/ps2_busywait.c index c5a0183bb7..18e2501a26 100644 --- a/drivers/ps2/ps2_busywait.c +++ b/drivers/ps2/ps2_busywait.c @@ -125,11 +125,10 @@ uint8_t ps2_host_recv_response(void) { // Command may take 25ms/20ms at most([5]p.46, [3]p.21) // 250 * 100us(wait for start bit in ps2_host_recv) uint8_t data = 0; - uint8_t try - = 250; + uint8_t try = 250; do { data = ps2_host_recv(); - } while (try --&&ps2_error); + } while (try-- && ps2_error); return data; } |