mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 18:48:11 +00:00
Added: Display error messages if wrong board type is selected at compilation time
This commit is contained in:
parent
9a63038a5f
commit
017a21c17f
@ -13,6 +13,14 @@
|
||||
along with Multiprotocol. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// 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
|
||||
//******************
|
||||
|
Loading…
x
Reference in New Issue
Block a user