Simplify moisture value access and update header structure
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#ifndef GLOBALS_H
|
||||
#define GLOBALS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
const uint16_t* moisturePtr(void);
|
||||
|
||||
#endif
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user