aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-04-26 12:44:51 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-04-26 12:44:51 -0400
commitd36dbfebd17500f0af176abd88d8b258c7940e47 (patch)
treea1e0f558fc9754e38f1fb4fe7aabffb39ac2f20d /docs
parent61a25d2fb22e53c75ae37cce21c6340e46fd6481 (diff)
downloadkutter-d36dbfebd17500f0af176abd88d8b258c7940e47.tar.gz
kutter-d36dbfebd17500f0af176abd88d8b258c7940e47.tar.xz
kutter-d36dbfebd17500f0af176abd88d8b258c7940e47.zip
docs: Prefer Jinja2 "set" directive to default_parameter_xxx in examples
The "set" directive is more flexible and easier to understand. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/API_Server.md6
1 files changed, 1 insertions, 5 deletions
diff --git a/docs/API_Server.md b/docs/API_Server.md
index c874365e..7c306a2a 100644
--- a/docs/API_Server.md
+++ b/docs/API_Server.md
@@ -163,12 +163,8 @@ that if the method takes parameters they should be provided as keyword
arguments. Below is an example of how it may called from a gcode_macro:
```
[gcode_macro PANELDUE_BEEP]
-default_parameter_FREQUENCY: 300
-default_parameter_DURATION: 1.
gcode:
- {action_call_remote_method("paneldue_beep",
- frequency=FREQUENCY|int,
- duration=DURATION|float)}
+ {action_call_remote_method("paneldue_beep", frequency=300, duration=1.0)}
```
When the PANELDUE_BEEP gcode macro is executed, Klipper would send something