Skip to content

Commit ea27579

Browse files
kbembeddedhedger
andauthored
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: d92b0a8 ("NFC refactoring (#3050)") Signed-off-by: Kris Bahnsen <[email protected]> Co-authored-by: hedger <[email protected]>
1 parent b723d46 commit ea27579

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/digital_signal/digital_sequence.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
* Example:
1616
* ./fbt --extra-define=DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN=gpio_ext_pb3
1717
*/
18+
#ifdef DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN
19+
#include <furi_hal.h>
20+
#endif
1821

1922
#define TAG "DigitalSequence"
2023

0 commit comments

Comments
 (0)