From ea2757908b68948b2217af90419f6e3deaa7f19d Mon Sep 17 00:00:00 2001 From: Kris Bahnsen Date: Sun, 20 Oct 2024 08:31:40 -0700 Subject: [PATCH] lib: digital_signal: digital_sequence: add furi_hal.h wrapped in ifdefs (#3964) Per the comment at the top of the file, defining DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN to be a GpioPin variable name should allow additional debug output on that pin. However, this would not work without modifying the file as well to add the furi_hal.h header. Wrap including that header in the same macro define to automatically include it when used. Fixes: d92b0a82cc4c ("NFC refactoring (#3050)") Signed-off-by: Kris Bahnsen Co-authored-by: hedger --- lib/digital_signal/digital_sequence.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/digital_signal/digital_sequence.c b/lib/digital_signal/digital_sequence.c index f93ce6d95..14cb3aab2 100644 --- a/lib/digital_signal/digital_sequence.c +++ b/lib/digital_signal/digital_sequence.c @@ -15,6 +15,9 @@ * Example: * ./fbt --extra-define=DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN=gpio_ext_pb3 */ +#ifdef DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN +#include +#endif #define TAG "DigitalSequence"