From 183330d6c32c9b78d00fa11a8b4b78c8e8d6a946 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sat, 27 Apr 2024 23:47:16 +0200 Subject: [PATCH] debug code removal --- mmu.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/mmu.cpp b/mmu.cpp index 17abfe5..dddacca 100644 --- a/mmu.cpp +++ b/mmu.cpp @@ -53,8 +53,6 @@ void mmu::setMMR0(uint16_t value) value &= 254; // bits 7...1 are protected } -// TODO if bit 15/14/13 are set (either of them), then do not modify bit 1...7 - MMR0 = value; } @@ -103,17 +101,6 @@ void mmu::addToMMR1(const int8_t delta, const uint8_t reg) assert((getMMR0() & 0160000) == 0); // MMR1 should not be locked -#if defined(ESP32) -// if (MMR1 > 255) -// esp_backtrace_print(32); -#else - if (MMR1 > 255) { - extern FILE *lfh; - fflush(lfh); - } - assert(MMR1 < 256); -#endif - MMR1 <<= 8; MMR1 |= (delta & 31) << 3;