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

Update sensor_pull.c #99

Closed rickiewars closed 3 years ago

rickiewars commented 3 years ago

Any reason why the file system was not initialized?

LOorts-Aloxy commented 3 years ago

Hi Ricklewars,

Thank you for your merge request. The filesystem already gets initialized inside alp_layer_init in alp_layer.c. I see that we do this in sensor_push.c but I think the cleanest solution would be to first initialize alp_layer and only then d7ap.

rickiewars commented 3 years ago

Hi Ricklewars,

Thank you for your merge request. The filesystem already gets initialized inside alp_layer_init in alp_layer.c. I see that we do this in sensor_push.c but I think the cleanest solution would be to first initialize alp_layer and only then d7ap.

I've updated the pull request. Is this what you meant @LOorts-Aloxy ?

LOorts-Aloxy commented 3 years ago

This is exactly what I meant, thank you for the merge request!

rickiewars commented 3 years ago

No problem, great to be at service ;)