Skip to content

Commit

Permalink
lib: digital_signal: digital_sequence: add furi_hal.h wrapped in ifdefs
Browse files Browse the repository at this point in the history
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 (flipperdevices#3050)")

Signed-off-by: Kris Bahnsen <[email protected]>
  • Loading branch information
kbembedded committed Oct 18, 2024
1 parent ab2fcaf commit be7fffd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/digital_signal/digital_sequence.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* Example:
* ./fbt --extra-define=DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN=gpio_ext_pb3
*/
#ifdef DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN
#include <furi_hal.h>
#endif

#define TAG "DigitalSequence"

Expand Down

0 comments on commit be7fffd

Please sign in to comment.