Closed AlexanderTonn closed 1 year ago
Reason for the issue was the usage of "delay()" in the controlLogic.ino
// Set Relays on Mppt Mode
void relayOnMppt() {
auto ms = secondToMs(uiSett_PVswitchingDelay);
digitalWrite(K2_INVERTER_AC, LOW);
delay(ms);
digitalWrite(K1_INVERTER_DC, LOW);
delay(ms);
digitalWrite(K3_MPPT_CHARGER, HIGH);
byModeActual = BATTERY_MODE;
}
void relayOnInverter() {
auto ms = secondToMs(uiSett_PVswitchingDelay);
digitalWrite(K3_MPPT_CHARGER, LOW);
delay(ms);
digitalWrite(K1_INVERTER_DC, HIGH);
delay(ms);
digitalWrite(K2_INVERTER_AC, HIGH);
byModeActual = INVERTER_MODE;
}
:bug: Describe the bug
:bangbang: To Reproduce**
Steps to reproduce the behavior:
tried to figure out whether the "map" function takes a lot of computing power, but this isn't it.
touch irq is currently not working, see also: Issue 19 (i can't try to figure out whether the cause is the
touch.getPoint()
in each iteration):interrobang: Expected behavior
A clear and concise description of what you expected to happen.
:camera: Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.