debug: add trace to debug steering

This commit is contained in:
Cyrille Nofficial 2022-02-25 19:05:58 +01:00
parent c42086a837
commit a17b818962

View File

@ -87,6 +87,7 @@ func (p *Pca9685Part) onSteeringChange(_ MQTT.Client, message MQTT.Message) {
) )
return return
} }
zap.S().Debugf("new steering value: %v", steering.GetSteering())
p.muSteering.Lock() p.muSteering.Lock()
defer p.muSteering.Unlock() defer p.muSteering.Unlock()
p.steeringCtrl.SetPercentValue(steering.GetSteering()) p.steeringCtrl.SetPercentValue(steering.GetSteering())