Fix UBL compilation warnings
This commit is contained in:
committed by
Scott Lahteine
parent
ba9879f8fa
commit
586d50ff99
@@ -1333,7 +1333,7 @@ void MarlinSettings::postprocess() {
|
||||
void MarlinSettings::store_mesh(const int8_t slot) {
|
||||
|
||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
const uint16_t a = calc_num_meshes();
|
||||
const int16_t a = calc_num_meshes();
|
||||
if (!WITHIN(slot, 0, a - 1)) {
|
||||
#if ENABLED(EEPROM_CHITCHAT)
|
||||
ubl_invalid_slot(a);
|
||||
@@ -1367,7 +1367,7 @@ void MarlinSettings::postprocess() {
|
||||
|
||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
|
||||
const uint16_t a = settings.calc_num_meshes();
|
||||
const int16_t a = settings.calc_num_meshes();
|
||||
|
||||
if (!WITHIN(slot, 0, a - 1)) {
|
||||
#if ENABLED(EEPROM_CHITCHAT)
|
||||
|
||||
Reference in New Issue
Block a user