From 25d7967d698c99220411f02014bcd47593f9d716 Mon Sep 17 00:00:00 2001 From: r4 Date: Mon, 18 Apr 2022 23:04:53 +0200 Subject: [PATCH] error on incompatible hardware --- spybug/spybug.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spybug/spybug.ino b/spybug/spybug.ino index df45b1a..c5591be 100644 --- a/spybug/spybug.ino +++ b/spybug/spybug.ino @@ -61,6 +61,10 @@ END USER CONFIGURATION **********************/ +#if !defined(__AVR_ATmega328P__) || F_CPU != 16000000 +#error "This program only works on ATmega328P devices with a clock frequency of 16MHz!" +#endif + void (*full_reset)() = nullptr; static int serial_putch(char c, FILE *f) {