Skip to content

Commit 8e67d09

Browse files
committed
Mrge with upstream evcc on 10.06.2024
1 parent 1c62eec commit 8e67d09

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

charger/sensonet/connection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func (c *Connection) getSystem(relData *Vr921RelevantDataStruct) error {
420420
}*/
421421
}
422422
//Added by WW: This block is used during development to analyse the system report return from the Vaillant portal
423-
level := util.LogLevelForArea("sensonet").String()
423+
level := util.WWlogLevelForArea("sensonet").String()
424424
if level == "DEBUG" || level == "TRACE" {
425425
c.log.DEBUG.Println("Writing debug information to files debug_sensonet_system.txt and debug_sensonet_reldata.txt")
426426
fo, ioerr := os.Create("debug_sensonet_system.txt")

charger/sensonet/switch.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ func (sh *Switch) Enable(enable bool) error {
140140
d.log.DEBUG.Println("Starting zone quick veto")
141141
}
142142
default:
143-
d.log.DEBUG.Println("Enable called but no quick mode possible")
143+
d.log.INFO.Println("Enable called but no quick mode possible")
144+
//d.onoff = false
145+
//return err
144146
}
145147
} else {
146148
switch d.currentQuickmode {

util/log.go

+5
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ func logLevelForArea(area string) jww.Threshold {
101101
return level
102102
}
103103

104+
// WWlogLevelForArea is used to call the private function logLevelForArea() in sensonet/connection.go for the fork with the sensonet charger
105+
func WWlogLevelForArea(area string) jww.Threshold {
106+
return logLevelForArea(area)
107+
}
108+
104109
// LogLevel sets log level for all loggers
105110
func LogLevel(defaultLevel string, areaLevels map[string]string) {
106111
// default level

0 commit comments

Comments
 (0)