Fix UBL compilation warnings
This commit is contained in:
parent
ba9879f8fa
commit
586d50ff99
5 changed files with 46 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue