Sub-IoT / Sub-IoT-Stack

Sub-IoT: Open Source Stack for Dash7 Alliance Protocol
https://sub-iot.github.io/Sub-IoT-Stack/
Other
150 stars 90 forks source link

Sensor Action example: assertion "is_fs_init_completed" failed #104

Closed awneil closed 3 years ago

awneil commented 3 years ago

In the RTT log:

00> [000] Sensor Action: Device booted
00> assertion "is_fs_init_completed" failed: file "...stack\framework\components\fs\fs.c", line 314, function: fs_file_stat

It happens at this point in sensor.c:

void bootstrap()
{
    log_print_string("Device booted\n");

    d7ap_init();

    alp_layer_init(NULL, false);   <<<--- Here !

    init_user_files();

Swapping the order of the alp_layer_init and d7ap_init calls - so that alp_layer_init comes first - seems to fix it.

SHA-1: 42d6bbff887b5a1789f5f01795f3d111467c400c

glennergeerts commented 3 years ago

Thanks, fixed in c25da89