Commit f1ae694f authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Fix flash_area_get_device_id in sim



commit c304a7f8
(refs/bisect/good-c304a7f8)
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: default avatarDavid Brown <david.brown@linaro.org>
parent e51ec070
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)