inverter/monitor: fix ac charging program in some cases when both ac input & pv are connected

This commit is contained in:
Evgeny Zinoviev 2022-08-31 20:46:45 +03:00
parent a4cc1411b4
commit 60f17a3fc2

View File

@ -218,8 +218,9 @@ class InverterMonitor(Thread):
except StopwatchError: except StopwatchError:
msg = 'gen_charging_program: floating_stopwatch.pause() failed at (1)' msg = 'gen_charging_program: floating_stopwatch.pause() failed at (1)'
logger.warning(msg) logger.warning(msg)
self.error_handler(msg) # self.error_handler(msg)
logger.info('solar power connected during charging, entering AC_BUT_SOLAR state') logger.info('solar power connected during charging, entering AC_BUT_SOLAR state')
return
# No surprises at this point, just check the values and make decisions based on them. # No surprises at this point, just check the values and make decisions based on them.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -