Browse Source

Fix compiler warnings

Scott Lahteine 7 years ago
parent
commit
4ef965cc40

+ 2
- 2
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp View File

609
     if (parser.seen('L')) {     // Load Current Mesh Data
609
     if (parser.seen('L')) {     // Load Current Mesh Data
610
       g29_storage_slot = parser.has_value() ? parser.value_int() : storage_slot;
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
       if (!a) {
614
       if (!a) {
615
         SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");
615
         SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");
651
         return;
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
       if (!a) {
656
       if (!a) {
657
         SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");
657
         SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");

+ 1
- 1
Marlin/src/gcode/bedlevel/M420.cpp View File

54
 
54
 
55
       #if ENABLED(EEPROM_SETTINGS)
55
       #if ENABLED(EEPROM_SETTINGS)
56
         const int8_t storage_slot = parser.has_value() ? parser.value_int() : ubl.storage_slot;
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
         if (!a) {
59
         if (!a) {
60
           SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");
60
           SERIAL_PROTOCOLLNPGM("?EEPROM storage not available.");

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp View File

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

Loading…
Cancel
Save