68340tmu.cpp: fix potential crash on mode logging

This commit is contained in:
Angelo Salese 2022-04-25 17:02:03 +02:00 committed by GitHub
parent 3c34de968d
commit d7cfc3c187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ void mc68340_timer_module_device::write(offs_t offset, uint16_t data, uint16_t m
"Period Measurement - not implemented",
"Event Count - not implemented",
"Timer Bypass (Simple Test Method) - not implemented"
}}[data & REG_CR_MODE_MASK]);
}}[(data & REG_CR_MODE_MASK) >> 2]);
LOGTIMER("- OC: %s mode\n", std::array<char const *, 4>{{"Disabled", "Toggle", "Zero", "One"}}[data & REG_CR_OC_MASK]);