Camera API bugfix

This commit is contained in:
Lior Halphon 2016-10-02 18:14:05 +03:00
parent ab5f66795a
commit 9c68ac1419
1 changed files with 1 additions and 1 deletions

View File

@ -68,8 +68,8 @@ void GB_camera_write_register(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
if (addr == 0) {
if ((value & 1) && gb->camera_update_request_callback) {
/* If no callback is set, ignore the write as if the camera is instantly done */
gb->camera_update_request_callback(gb);
gb->camera_registers[0] = 1;
gb->camera_update_request_callback(gb);
}
}
else {