mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Add compilation error incase user tries invalid combo
This commit is contained in:
parent
a1c43e9079
commit
e313cda7d5
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,13 @@
|
|||
#error CAN-FD AND DUAL-CAN CANNOT BE USED SIMULTANEOUSLY
|
||||
#endif
|
||||
|
||||
#ifdef USE_CANFD_INTERFACE_AS_CLASSIC_CAN
|
||||
#if !defined(CAN_FD)
|
||||
// Check that user did not try to use classic CAN over FD, without FD component
|
||||
#error PLEASE ENABLE CAN_FD TO USE CLASSIC CAN OVER CANFD INTERFACE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MODBUS_INVERTER_SELECTED
|
||||
#if defined(SERIAL_LINK_RECEIVER) || defined(SERIAL_LINK_TRANSMITTER)
|
||||
// Check that Dual LilyGo via RS485 option isn't enabled, this collides with Modbus!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue