Skip to content

Commit

Permalink
lib: digital_signal: digital_sequence: add furi_hal.h wrapped in ifde…
Browse files Browse the repository at this point in the history
…fs (#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]>
  • Loading branch information
kbembedded and hedger authored Oct 20, 2024
1 parent b723d46 commit ea27579
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 ea27579

Please sign in to comment.