From 017a21c17fe7b61e2f314e0397fe8b1dcdcafbb8 Mon Sep 17 00:00:00 2001 From: pascallanger Date: Thu, 28 Jan 2016 11:26:31 +0100 Subject: [PATCH] Added: Display error messages if wrong board type is selected at compilation time --- Multiprotocol/multiprotocol.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Multiprotocol/multiprotocol.h b/Multiprotocol/multiprotocol.h index 2eec052..717ada0 100644 --- a/Multiprotocol/multiprotocol.h +++ b/Multiprotocol/multiprotocol.h @@ -13,6 +13,14 @@ along with Multiprotocol. If not, see . */ +// Check selected board type +#ifndef ARDUINO_AVR_PRO + #error You must select the board type "Arduino Pro or Pro Mini" +#endif +#if F_CPU != 16000000L || not defined(__AVR_ATmega328P__) + #error You must select the processor type "ATmega328(5V, 16MHz)" +#endif + //****************** // Protocols //******************