Scott Lahteine пре 7 година
родитељ
комит
4ef965cc40

+ 2
- 2
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp Прегледај датотеку

@@ -609,7 +609,7 @@
609 609
     if (parser.seen('L')) {     // Load Current Mesh Data
610 610
       g29_storage_slot = parser.has_value() ? parser.value_int() : storage_slot;
611 611
 
612
-      uint16_t a = settings.calc_num_meshes();
612
+      int16_t a = settings.calc_num_meshes();
613 613
 
614 614
       if (!a) {
615 615
         SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");
@@ -651,7 +651,7 @@
651 651
         return;
652 652
       }
653 653
 
654
-      uint16_t a = settings.calc_num_meshes();
654
+      int16_t a = settings.calc_num_meshes();
655 655
 
656 656
       if (!a) {
657 657
         SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");

+ 1
- 1
Marlin/src/gcode/bedlevel/M420.cpp Прегледај датотеку

@@ -54,7 +54,7 @@ void GcodeSuite::M420() {
54 54
 
55 55
       #if ENABLED(EEPROM_SETTINGS)
56 56
         const int8_t storage_slot = parser.has_value() ? parser.value_int() : ubl.storage_slot;
57
-        const uint16_t a = settings.calc_num_meshes();
57
+        const int16_t a = settings.calc_num_meshes();
58 58
 
59 59
         if (!a) {
60 60
           SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp Прегледај датотеку

@@ -2285,7 +2285,7 @@ void kill_screen(const char* lcd_msg) {
2285 2285
      *    Save Bed Mesh
2286 2286
      */
2287 2287
     void _lcd_ubl_storage_mesh() {
2288
-      uint16_t a = settings.calc_num_meshes();
2288
+      int16_t a = settings.calc_num_meshes();
2289 2289
       START_MENU();
2290 2290
       MENU_BACK(MSG_UBL_LEVEL_BED);
2291 2291
       if (!WITHIN(ubl_storage_slot, 0, a - 1)) {

Loading…
Откажи
Сачувај