From ab8aa7f189b2ec4a01077e0d8384bdb6805ffefa Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 2 Jul 2020 16:11:14 +0200 Subject: [PATCH] driver/mcu/ATmega32U4: Fix the class declaration for virtual builds Due to the introduction of MCU properties recently, we need to declare the class for virtual builds, and can't get away with simply typedefing it to Base. Signed-off-by: Gergely Nagy --- src/kaleidoscope/driver/mcu/ATmega32U4.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kaleidoscope/driver/mcu/ATmega32U4.h b/src/kaleidoscope/driver/mcu/ATmega32U4.h index 2a15fafd..3db59115 100644 --- a/src/kaleidoscope/driver/mcu/ATmega32U4.h +++ b/src/kaleidoscope/driver/mcu/ATmega32U4.h @@ -64,7 +64,8 @@ class ATmega32U4 : public kaleidoscope::driver::mcu::Base { void setup() {} }; #else -typedef Base ATmega32U4; +template +class ATmega32U4 : public kaleidoscope::driver::mcu::Base<_Props> {}; #endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD }