Simplify moisture value access and update header structure

This commit is contained in:
2025-10-12 14:01:43 +02:00
parent 2d9a4f3bb5
commit 0f0408df9b
5 changed files with 23 additions and 23 deletions
+2
View File
@@ -51,4 +51,6 @@ inline void eeprom_init() {
for (int i = 0; i < DICT_SIZE; i++) if (eepromRead(keys[i]) == 0) eepromWrite(keys[i], values[i]);
}
extern volatile uint16_t *pLastMoistureVal;
#endif
-8
View File
@@ -1,8 +0,0 @@
#ifndef GLOBALS_H
#define GLOBALS_H
#include <stdint.h>
const uint16_t* moisturePtr(void);
#endif
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef TWI_H
#define TWI_H
extern volatile uint16_t *pLastMoistureVal;
void twiInit(void);
void twiAlert(void);
void twiListen(void);
#endif