Added compiler macro to error out if paddle_left or paddle_right is defined as 0 (disabled)
ATMega_More_Pins
k3ng 2022-01-28 19:38:29 -05:00
rodzic a20090a8a6
commit 8234510277
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -1532,6 +1532,10 @@ If you offer a hardware kit using this software, show your appreciation by sendi
#include "keyer_settings.h"
#endif
#if (paddle_left == 0) || (paddle_right == 0)
#error "You cannot define paddle_left or paddle_right as 0 to disable"
#endif
#if defined(FEATURE_BUTTONS)
#include "src/buttonarray/buttonarray.h"
#endif

Wyświetl plik

@ -48,3 +48,4 @@
#if defined(FEATURE_COMMAND_MODE) && !defined(FEATURE_BUTTONS)
#error "FEATURE_COMMAND_MODE requires FEATURE_BUTTONS"
#endif