From f50a623909a29e45fb9bebfd16afd1835277b530 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Tue, 19 Apr 2022 00:39:45 +1000 Subject: [PATCH] Fixup AVR builds. (#16875) * Fixup AVR builds. * Update platforms/avr/hardware_id.c Co-authored-by: Ryan Co-authored-by: Joel Challis Co-authored-by: Ryan --- platforms/avr/hardware_id.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platforms/avr/hardware_id.c b/platforms/avr/hardware_id.c index 073834c19cb..b61f0d92df8 100644 --- a/platforms/avr/hardware_id.c +++ b/platforms/avr/hardware_id.c @@ -1,6 +1,12 @@ // Copyright 2022 QMK // SPDX-License-Identifier: GPL-2.0-or-later +// For some reason this bit is undocumented for some AVR parts and not defined in their avr-libc IO headers +// See https://stackoverflow.com/questions/12350914/how-to-read-atmega-32-signature-row +#ifndef SIGRD +# define SIGRD 5 +#endif // SIGRD + #include #include "hardware_id.h"