optimize lambda expression capture

flash: -10
This commit is contained in:
Alex Voinea 2023-05-06 17:07:10 +02:00
parent 2d0b96fe6a
commit be3465cf18
No known key found for this signature in database
GPG Key ID: 37EDFD565CB33BAD
1 changed files with 1 additions and 1 deletions

View File

@ -3016,7 +3016,7 @@ static void gcode_G80()
// Apply the bed level correction to the mesh
bool eeprom_bed_correction_valid = eeprom_read_byte((unsigned char*)EEPROM_BED_CORRECTION_VALID) == 1;
auto bedCorrectHelper = [&] (char code, uint8_t *eep_address) -> int8_t {
auto bedCorrectHelper = [eeprom_bed_correction_valid] (char code, uint8_t *eep_address) -> int8_t {
if (code_seen(code)) {
// Verify value is within allowed range
int16_t temp = code_value_short();