Преглед изворни кода

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

Adds 18 bytes of flash
Guðni Már Gilbert пре 3 година
родитељ
комит
c4f1023924
1 измењених фајлова са 6 додато и 0 уклоњено
  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);