diff options
-rwxr-xr-x | uiWidgets/CommandButton.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uiWidgets/CommandButton.go b/uiWidgets/CommandButton.go index a65bcb1..030d4c8 100755 --- a/uiWidgets/CommandButton.go +++ b/uiWidgets/CommandButton.go @@ -53,13 +53,13 @@ func (this *CommandButton) handleClicked() { } func (this *CommandButton) sendCommand() { - logger.Infof("CommandButton.sendCommand(), now sending command %q", this.controlDefinition.Name) - + logger.Infof("CommandButton.sendCommand(), now sending command %q", this.commandDefinition.Name) + commandRequest := &octoprintApis.SystemExecuteCommandRequest{ Source: dataModels.Custom, Action: this.commandDefinition.Action, } - + err := commandRequest.Do(this.client) if err != nil { logger.LogError("CommandButton.sendCommand()", "Do(SystemExecuteCommandRequest)", err) |