From 92168311bfb6e924bf0db93652767ba3a9533e2b Mon Sep 17 00:00:00 2001 From: Panagiotis <58827426+tiseno100@users.noreply.github.com> Date: Fri, 1 Jan 2021 20:24:32 +0200 Subject: [PATCH] Position fix. --- src/chipset/acc2168.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/chipset/acc2168.c b/src/chipset/acc2168.c index 4cdf41a2c..384486faa 100644 --- a/src/chipset/acc2168.c +++ b/src/chipset/acc2168.c @@ -38,6 +38,8 @@ #define SHADOW_SIZE ((i <= 1) ? 0x8000 : 0x10000) #define SHADOW_RECALC ((dev->regs[0x02] & (1 << i)) ? ENABLED_SHADOW : DISABLED_SHADOW) +#define ENABLE_ACC2168_LOG 1 + #ifdef ENABLE_ACC2168_LOG int acc2168_do_log = ENABLE_ACC2168_LOG; static void @@ -154,6 +156,11 @@ acc2168_write(uint16_t addr, uint8_t val, void *p) case 0x1b: dev->regs[dev->reg_idx] = val & 0xef; break; + + default: /* ACC 2168 has way more registers which we haven't documented */ + dev->regs[dev->reg_idx] = val; + break; + } break; }