Skip to content

Commit dcad76b

Browse files
committed
fix(lf): guard Ultra-only includes and processors for Lite build
1 parent 264c279 commit dcad76b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

firmware/application/src/app_cmd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
#include "settings.h"
1515
#include "delayed_reset.h"
1616
#include "netdata.h"
17+
#if defined(PROJECT_CHAMELEON_ULTRA)
1718
#include "bsp_wdt.h"
1819
#include "lf_reader_generic.h"
1920
#include "lf_em4x05_data.h"
21+
#endif
2022

2123

2224
#define NRF_LOG_MODULE_NAME app_cmd
@@ -1732,6 +1734,7 @@ static data_frame_tx_t *cmd_processor_mf0_get_emulator_config(uint16_t cmd, uint
17321734
* (cmd -> processor) function map, the map struct is:
17331735
* cmd code before process cmd processor after process
17341736
*/
1737+
#if defined(PROJECT_CHAMELEON_ULTRA)
17351738
static data_frame_tx_t *cmd_processor_em4x05_scan(uint16_t cmd, uint16_t status, uint16_t length, uint8_t *data) {
17361739
em4x05_data_t tag = {0};
17371740
status = scan_em4x05(&tag);
@@ -1769,6 +1772,8 @@ static data_frame_tx_t *cmd_processor_lf_sniff(uint16_t cmd, uint16_t status, ui
17691772
return data_frame_make(cmd, STATUS_LF_TAG_OK, (uint16_t)outlen, sniff_buf);
17701773
}
17711774

1775+
#endif
1776+
17721777
static cmd_data_map_t m_data_cmd_map[] = {
17731778
{ DATA_CMD_GET_APP_VERSION, NULL, cmd_processor_get_app_version, NULL },
17741779
{ DATA_CMD_CHANGE_DEVICE_MODE, NULL, cmd_processor_change_device_mode, NULL },

0 commit comments

Comments
 (0)