Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Z-Bolt/OctoScreen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xuiWidgets/CommandButton.go6
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)