Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charger/ocpp/cs.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ func (cs *CS) NewChargePoint(chargePoint ocpp16.ChargePointConnection) {
return
}

cs.log.WARN.Printf("unknown charge point connected: %s", chargePoint.ID())

// check for configured anonymous charge point
reg, ok = cs.regs[""]
if ok && reg.cp != nil {
Expand All @@ -143,8 +145,6 @@ func (cs *CS) NewChargePoint(chargePoint ocpp16.ChargePointConnection) {
return
}

cs.log.WARN.Printf("unknown charge point connected: %s", chargePoint.ID())

// register unknown charge point
// when charge point setup is complete, it will eventually be associated with the connected id
cs.regs[chargePoint.ID()] = newRegistration()
Expand Down
Loading