From e2e2f4ef7f16dcdb2e4d2ac6909e13af2fcbfdfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Thu, 15 Aug 2024 17:32:29 +0000 Subject: [PATCH] Check if MMU is enabled by reading EEPROM --- Firmware/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/util.cpp b/Firmware/util.cpp index 20573e7d08..0ca3a7655e 100644 --- a/Firmware/util.cpp +++ b/Firmware/util.cpp @@ -371,7 +371,7 @@ void fw_version_check(const char *pVersion) { bool filament_presence_check() { // When MMU is enabled, this is not necessary and the G-code file // should always tell the MMU which filament to load. - if (MMU2::mmu2.Enabled()) { + if (eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED)) { goto done; }