Skip to content

Commit

Permalink
Fix then() and string formatting in sample1.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan4th committed Apr 15, 2015
1 parent 7915e33 commit 46db611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample1.js
Expand Up @@ -37,8 +37,8 @@ defineRule("doClick", {

defineRule("echo", {
whenChanged: "wb-w1/00042d40ffff",
then: function (devName, cellName, newValue) {
runShellCommand("echo " + devName + "/" + cellName + "=" + newValue, {
then: function (newValue, devName, cellName) {
runShellCommand("echo {}/{} = {}".format(devName, cellName, newValue), {
captureOutput: true,
exitCallback: function (exitCode, capturedOutput) {
log("cmd output: " + capturedOutput);
Expand Down

0 comments on commit 46db611

Please sign in to comment.