Apply NOLESS/NOMORE

2.0.x
Scott Lahteine 6 years ago
parent b315157053
commit d3bb5b69ba

@ -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;
}
}

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

Loading…
Cancel
Save