diff -r 6c4c884be155 -r e981d0185485 thermferm/thermferm.h --- a/thermferm/thermferm.h Wed Mar 27 18:59:39 2024 +0100 +++ b/thermferm/thermferm.h Tue Apr 02 15:03:12 2024 +0200 @@ -58,7 +58,7 @@ #define LOCK_DEVICES 0 #define LOCK_LCD 1 #define LOCK_MENU 2 -#define LOCK_SPARE2 3 +#define LOCK_ONE_WIRE 3 #define LOCK_SPARE3 4 @@ -304,6 +304,21 @@ #define DEVDIR_OUT_PWM 5 /* PWM outout */ #define DEVDIR_INTERN 6 /* Internal function */ + +/* + * Dynamic one-wire devices list + */ +typedef struct _w1_list { + struct _w1_list *next; + char *address; ///< Device address + char family[3]; ///< Device family + int present; ///< Present on bus + int subdevices; ///< Number of subdevices + time_t timestamp; ///< Last seen +} w1_list; + + + #ifdef USE_SIMULATOR /*