Browse Source

selftest fixed

PavelSindler 5 năm trước cách đây
mục cha
commit
0514306bed
2 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 1 1
      Firmware/Configuration.h
  2. 4 4
      Firmware/ultralcd.cpp

+ 1 - 1
Firmware/Configuration.h

@@ -13,7 +13,7 @@
 // The firmware should only be checked into github with this symbol.
 #define FW_DEV_VERSION FW_VERSION_UNKNOWN
 #define FW_REPOSITORY "Unknown"
-#define FW_VERSION_FULL FW_VERSION "-" STR(FW_COMMIT_NR)
+#define FW_VERSION_FULL FW_VERSION "-" STR(FW_COMMIT_NR) "a"
 
 // Debug version has debugging enabled (the symbol DEBUG_BUILD is set).
 // The debug build may be a bit slower than the non-debug build, therefore the debug build should

+ 4 - 4
Firmware/ultralcd.cpp

@@ -6456,20 +6456,20 @@ bool lcd_selftest()
 
         if (mmu_enabled)
         {        
-			_progress = lcd_selftest_screen(9, _progress, 3, true, 2000); //check filaments sensor
+			_progress = lcd_selftest_screen(testScreen::fsensor, _progress, 3, true, 2000); //check filaments sensor
             _result = selftest_irsensor();
 		    if (_result)
 			{
-				_progress = lcd_selftest_screen(10, _progress, 3, true, 2000); //fil sensor OK
+				_progress = lcd_selftest_screen(testScreen::fsensorOk, _progress, 3, true, 2000); //fil sensor OK
 			}
         } else
         {
 #ifdef PAT9125
-			_progress = lcd_selftest_screen(9, _progress, 3, true, 2000); //check filaments sensor
+			_progress = lcd_selftest_screen(testScreen::fsensor, _progress, 3, true, 2000); //check filaments sensor
             _result = lcd_selftest_fsensor();
 			if (_result)
 			{
-				_progress = lcd_selftest_screen(10, _progress, 3, true, 2000); //fil sensor OK
+				_progress = lcd_selftest_screen(testScreen::fsensorOk, _progress, 3, true, 2000); //fil sensor OK
 			}
 #endif //PAT9125
         }