summaryrefslogtreecommitdiff
path: root/platforms/avr/drivers
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-06-25 12:34:40 -0700
committerGitHub <noreply@github.com>2022-06-25 12:34:40 -0700
commit7fd3d76faa92dd3291228e77533859793470683f (patch)
treed6c1acbdedc5408b86fd21eba1c3a91a633c0756 /platforms/avr/drivers
parentcbbdcec290f149d86834a0315941ec26358b4ff4 (diff)
downloadqmk_firmware-7fd3d76faa92dd3291228e77533859793470683f.tar.gz
qmk_firmware-7fd3d76faa92dd3291228e77533859793470683f.zip
[Split] Ensure SOFT_SERIAL_PIN is defined if USE_I2C isn't defined (#17466)
Diffstat (limited to 'platforms/avr/drivers')
-rw-r--r--platforms/avr/drivers/serial.c4
1 files changed, 4 insertions, 0 deletions
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