sim: Fix flash_area_get_device_id in sim
commit c304a7f84a
(refs/bisect/good-c304a7f84a7e7e345457e23b179fa302b8732fb9)
Author: Dominik Ermel <dominik.ermel@nordicsemi.no>
Date: Mon Jun 14 16:08:42 2021 +0000
sim: Add flash_area_get_device_id implementation
Adds an implementation for this function in the simulator that just
returns 0. Fix this to return the proper ID so that when tests start
checking for this, it will return the right value.
Signed-off-by: David Brown <david.brown@linaro.org>
This commit is contained in:
parent
e51ec0707b
commit
f1ae694fa1
|
@ -435,8 +435,7 @@ int flash_area_id_to_multi_image_slot(int image_index, int area_id)
|
|||
|
||||
uint8_t flash_area_get_device_id(const struct flash_area *fa)
|
||||
{
|
||||
(void)fa;
|
||||
return 0;
|
||||
return fa->fa_device_id;
|
||||
}
|
||||
|
||||
void sim_assert(int x, const char *assertion, const char *file, unsigned int line, const char *function)
|
||||
|
|
Loading…
Reference in New Issue