5 |
5 |
6 #include "config.h" |
6 #include "config.h" |
7 |
7 |
8 static const char *TAG = "config"; |
8 static const char *TAG = "config"; |
9 |
9 |
10 extern unit_t units[3]; |
10 unit_t units[3]; ///< Pressure test units |
|
11 SemaphoreHandle_t xSemaphoreUnits = NULL; ///< Semaphore Units records |
|
12 |
11 |
13 |
12 |
14 |
13 void write_config() { |
15 void write_config() { |
14 uint8_t *dst = (uint8_t *)&config; |
16 uint8_t *dst = (uint8_t *)&config; |
15 FILE *f = fopen("/spiffs/etc/config.conf", "w+"); |
17 FILE *f = fopen("/spiffs/etc/config.conf", "w+"); |