From 5e2409b9fc4a68255305ac1eb547a9929f34103b Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Mon, 29 Jan 2024 18:31:32 +1300 Subject: [PATCH] Remove EEPROM spot check after chip erase from bootloaders Bootloaders emulate chip erase (if at all) so EEPROM is unlikely erased --- tools/test-avrdude | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test-avrdude b/tools/test-avrdude index 2c1e43da..9c5a2858 100755 --- a/tools/test-avrdude +++ b/tools/test-avrdude @@ -362,7 +362,7 @@ for (( p=0; p<$arraylength; p++ )); do command=(${avrdude[@]} -e -Uflash:v:$tfiles/holes_flash_0xff_${FLASH_SIZE}B.hex) execute "${command[@]}" result [ $? == 0 ] - if [[ $? == 0 && $check_eeprom -eq 1 ]]; then + if [[ $? == 0 && $check_eeprom -eq 1 && $is_bootloader -eq 0 ]]; then specify="spot check eeprom is erased, too" command=(${avrdude[@]} -Ueeprom:v:$tfiles/holes_eeprom_0xff_${EE_SIZE}B.hex) execute "${command[@]}"