Skip to content

Commit

Permalink
pcd: Fix build error 'CONFIG_FW_INFO_MAGIC_LEN' undeclared here
Browse files Browse the repository at this point in the history
Fix build error 'CONFIG_FW_INFO_MAGIC_LEN' undeclared here.
Including the fw_info_bare.h header file without CONFIG_FW_INFO enabled
causes issues in struct definition array size, and in static inline
functions.

Signed-off-by: Joakim Andersson <[email protected]>
  • Loading branch information
joerchan authored and rlubos committed Apr 12, 2024
1 parent d12d585 commit ef7fd54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subsys/pcd/src/pcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
#include <zephyr/logging/log.h>

#ifdef CONFIG_PCD_NET
#ifdef CONFIG_PCD_READ_NETCORE_APP_VERSION
#include <fw_info_bare.h>
#endif
#include <zephyr/storage/stream_flash.h>
#endif

Expand Down

0 comments on commit ef7fd54

Please sign in to comment.