From 947dbdbc1e3b9c966e65a3a4a38b268bc29c1f47 Mon Sep 17 00:00:00 2001 From: Schallbert Date: Sun, 14 Feb 2021 18:07:03 +0100 Subject: [PATCH] fix avrdude WARNING for deprecated setting of lock/unlock fuse. issue #237. Method: following chip datasheets, set unused 2 most significant bits to 1. --- builder/bootloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/bootloader.py b/builder/bootloader.py index 9862cf0..fa3e52a 100644 --- a/builder/bootloader.py +++ b/builder/bootloader.py @@ -78,8 +78,8 @@ def get_suitable_optiboot_binary(framework_dir, board_config): fuses_action = env.SConscript("fuses.py", exports="env") -lock_bits = board.get("bootloader.lock_bits", "0x0F") -unlock_bits = board.get("bootloader.unlock_bits", "0x3F") +lock_bits = board.get("bootloader.lock_bits", "0xCF") +unlock_bits = board.get("bootloader.unlock_bits", "0xEF") env.Replace( BOOTUPLOADER="avrdude",