- fix warning for unused function parameter

This commit is contained in:
Thomas Vogl 2022-12-31 11:16:29 +01:00
parent 6b64e5aa00
commit 586a657674
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func (m *MqttService) pinCyclicCallback(pinName string, pinState PinControlServi
token := m.mqttClient.Publish(topic, 1, false, string(pinState))
go m._asyncWait(token, nil)
}
func (m *MqttService) controlCallback(client mqtt.Client, message mqtt.Message) {
func (m *MqttService) controlCallback(_ mqtt.Client, message mqtt.Message) {
if pinNo, err := PinNameFromTopic(message.Topic()); err == nil {
if err := m.pinService.Command(pinNo, PinControlService.PinCommand(message.Payload())); err != nil {
log.Error(err.Error())