main/config.c

changeset 4
2a57c466bf45
parent 3
cd760fd45271
child 7
6eafc4c2bf3d
equal deleted inserted replaced
3:cd760fd45271 4:2a57c466bf45
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+");

mercurial