From 3a60d6243492c54b021a17b3c7d4c9a70d693879 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 29 Jun 2023 13:57:16 +0200 Subject: [PATCH] Fixed thetype of temp in kbc_send_to_ob(), fixes the incorrect sending of 0xFF's to the guest. --- src/device/kbc_at.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/kbc_at.c b/src/device/kbc_at.c index 17e2a4009..7ece0cabc 100644 --- a/src/device/kbc_at.c +++ b/src/device/kbc_at.c @@ -323,7 +323,7 @@ static void kbc_send_to_ob(atkbc_t *dev, uint8_t val, uint8_t channel, uint8_t stat_hi) { uint8_t kbc_ven = dev->flags & KBC_VEN_MASK; - uint8_t temp = (channel == 1) ? kbc_translate(dev, val) : val; + int temp = (channel == 1) ? kbc_translate(dev, val) : ((int) val); if (temp == -1) return;