Revision | 95e4b5fdafa1eba4af5c44c23f995b1aeaf73ca7 (tree) |
---|---|
Time | 2021-09-04 03:06:06 |
Author | inglorion <homemicro@ingl...> |
Commiter | inglorion |
emulator: fixed if statement in stop condition handling
The if statement read: if (s->cartridge, ...)
This has been corrected to: if (s->cartridge && ...)
@@ -261,7 +261,7 @@ | ||
261 | 261 | s->twi_status = 15; |
262 | 262 | } else { |
263 | 263 | /* Stop condition. */ |
264 | - if (s->cartridge, addr_set && addressing_cartridge && twi_addr_even) { | |
264 | + if (s->cartridge && addr_set && addressing_cartridge && twi_addr_even) { | |
265 | 265 | msync(s->cartridge, s->cartridge_size, MS_ASYNC); |
266 | 266 | } |
267 | 267 | s->twi_status = 0; |