Rename functions name for better code clarity

This commit is contained in:
2025-05-15 22:08:36 +02:00
parent 412354fe88
commit cf3230c470
4 changed files with 23 additions and 16 deletions
+6 -7
View File
@@ -7,7 +7,7 @@
#include "adc.h"
ISR(WDT_vect) {
triggerSensorsRead();
triggerRead();
}
void watchdogs(void) {
@@ -27,7 +27,8 @@ void enterSleep(void) {
void setup(void) {
adcInit();
initMoistureSensors();
//pumpsInit();
sensorsInit();
watchdogs();
}
@@ -36,12 +37,10 @@ int main(void) {
while(true) {
if (readSensors) {
int16_t result = readMoisture();
//TODO: send result to esp32
int16_t result = moistureRead();
//espSend(VASE_NUM, result)
}
// readFromEsp()
// if esp tells to water plants: waterPlants()
// if(espGet("ask if i need to water plants") == true) {trigger()}
enterSleep();
}
return 0;