diff options
author | 2018-05-19 12:02:08 +0300 | |
---|---|---|
committer | 2018-05-19 12:02:08 +0300 | |
commit | 03b7473d4faddcb87a5e82205a42028768e7c177 (patch) | |
tree | 8c21b9d4ef03a82740fc63f7b0512200dbdd4a0d /src/server/util.h | |
parent | 224585cfb9502534032078f4f059588185490c09 (diff) | |
download | coffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.tar.gz coffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.tar.bz2 coffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.zip |
add support for "live"-flashing new settings.
Diffstat (limited to 'src/server/util.h')
-rw-r--r-- | src/server/util.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/server/util.h b/src/server/util.h index 9c0f907..ef5cde2 100644 --- a/src/server/util.h +++ b/src/server/util.h @@ -21,13 +21,17 @@ #ifndef UTIL_H_INCLUDED #define UTIL_H_INCLUDED +#include "datatypes.h" + #define arrsize(a) (sizeof(a)/sizeof(*a)) enum response { ERROR = -1, - A_OK = 0, - NONEWDATA = 1, - DEAD = 2 + A_OK = 0, /* would be "OK", but clashes with some lib definitions */ + NONEWDATA, + DEAD, + NO_ESPTOOL, + TMPFILE, }; struct tempmodule_state { @@ -51,5 +55,6 @@ struct tempmodule_state { }; int refresh_data(int nd, struct tempmodule_state *state); +int write_settings(char *imagename, const struct configuration * const conf); #endif /* UTIL_H_INCLUDED */ |