- fix warning for unused function parameter
This commit is contained in:
parent
6b64e5aa00
commit
586a657674
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue