summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-02-21 09:44:27 -0800
committerGitHub <noreply@github.com>2022-02-21 17:44:27 +0000
commit2f0dc0fb6d36b43e0d143224e4a9058b77c4e0e3 (patch)
treeecdbdccbb5fde38e22f6228f6a20a4ca2fed8b99 /drivers
parent32903779181c31244c7c7b97a04bda0fd5b59de1 (diff)
downloadqmk_firmware-2f0dc0fb6d36b43e0d143224e4a9058b77c4e0e3.tar.gz
qmk_firmware-2f0dc0fb6d36b43e0d143224e4a9058b77c4e0e3.zip
Format code according to conventions (#16419)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ps2/ps2_busywait.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ps2/ps2_busywait.c b/drivers/ps2/ps2_busywait.c
index 983194eea8..a426090155 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;
}