From 7fd3d76faa92dd3291228e77533859793470683f Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sat, 25 Jun 2022 12:34:40 -0700 Subject: [Split] Ensure SOFT_SERIAL_PIN is defined if USE_I2C isn't defined (#17466) --- platforms/avr/drivers/serial.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'platforms') diff --git a/platforms/avr/drivers/serial.c b/platforms/avr/drivers/serial.c index 6a36aa5f7f..730d9b7a01 100644 --- a/platforms/avr/drivers/serial.c +++ b/platforms/avr/drivers/serial.c @@ -498,6 +498,10 @@ bool soft_serial_transaction(int sstd_index) { sei(); return true; } +#else +# ifndef USE_I2C +# error SOFT_SERIAL_PIN or USE_I2C is required but has not been defined. +# endif #endif // Helix serial.c history -- cgit v1.2.1