Apply NOLESS/NOMORE

This commit is contained in:
Scott Lahteine 2019-05-26 03:01:43 -05:00
parent b315157053
commit d3bb5b69ba
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ void Heater::update() {
last = now;
heat += (heater_state - heat) * (delta / 1000000000.0);
if (heat < room_temp_raw) heat = room_temp_raw;
NOLESS(heat, room_temp_raw);
Gpio::pin_map[analogInputToDigitalPin(adc_pin)].value = 0xFFFF - (uint16_t)heat;
}
}

View file

@ -798,7 +798,7 @@ void CardReader::setroot() {
// Never sort more than the max allowed
// If you use folders to organize, 20 may be enough
if (fileCnt > SDSORT_LIMIT) fileCnt = SDSORT_LIMIT;
NOMORE(fileCnt, SDSORT_LIMIT);
// Sort order is always needed. May be static or dynamic.
#if ENABLED(SDSORT_DYNAMIC_RAM)