Fix UBL compilation warnings

This commit is contained in:
Thomas Moore 2018-01-01 20:21:54 -06:00 committed by Scott Lahteine
parent ba9879f8fa
commit 586d50ff99
5 changed files with 46 additions and 18 deletions

View file

@ -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)