Explorar o código

Add back second call to prusa_statistics(8) when farm_mode is enabled.

Adds 18 bytes of flash
Guðni Már Gilbert %!s(int64=3) %!d(string=hai) anos
pai
achega
c4f1023924
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      Firmware/Marlin_main.cpp

+ 6 - 0
Firmware/Marlin_main.cpp

@@ -1439,6 +1439,12 @@ void setup()
     enable_z();
 #endif
 
+    if (farm_mode) {
+        // The farm monitoring SW may accidentally expect 
+        // 2 messages of "printer started" to consider a printer working.
+        prusa_statistics(8);
+    }
+
 	// Enable Toshiba FlashAir SD card / WiFi enahanced card.
 	card.ToshibaFlashAir_enable(eeprom_read_byte((unsigned char*)EEPROM_TOSHIBA_FLASH_AIR_COMPATIBLITY) == 1);