Skip to content

Commit

Permalink
lib: updatehub: Add missing include for FLASH_AREA
Browse files Browse the repository at this point in the history
The conversion from DT_FLASH_AREA to FLASH_AREA macros don't add the
storage flash_map.h include file.

Fixes: zephyrproject-rtos#25332

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
  • Loading branch information
nandojve committed Jul 30, 2020
1 parent e034bb3 commit c755539
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/updatehub/updatehub.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ LOG_MODULE_REGISTER(updatehub);
#include <power/reboot.h>
#include <tinycrypt/sha256.h>
#include <data/json.h>
#include <storage/flash_map.h>

#include "include/updatehub.h"
#include "updatehub_priv.h"
Expand Down
2 changes: 2 additions & 0 deletions lib/updatehub/updatehub_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <storage/flash_map.h>

#include "updatehub_firmware.h"

bool updatehub_get_firmware_version(char *version, int version_len)
Expand Down

0 comments on commit c755539

Please sign in to comment.