mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
ps2: fix real hw
This commit is contained in:
@@ -89,9 +89,10 @@ static inline uint8_t device_write_response(int port, uint8_t command) {
|
||||
uint8_t r = RESEND;
|
||||
int tries = 0;
|
||||
|
||||
while (r == RESEND && tries-- < 5) {
|
||||
while (r == RESEND && tries < 5) {
|
||||
device_command(port, command);
|
||||
r = read_data();
|
||||
++tries;
|
||||
}
|
||||
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user