diff options
Diffstat (limited to 'hw/timer')
-rw-r--r-- | hw/timer/i8254_common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/timer/i8254_common.c b/hw/timer/i8254_common.c index e4093e2..b25da44 100644 --- a/hw/timer/i8254_common.c +++ b/hw/timer/i8254_common.c @@ -52,10 +52,8 @@ int pit_get_out(PITChannelState *s, int64_t current_time) switch (s->mode) { default: case 0: - out = (d >= s->count); - break; case 1: - out = (d < s->count); + out = (d >= s->count); break; case 2: if ((d % s->count) == 0 && d != 0) { |