sample-macros.cfg: Fix action_respond_info
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
This commit is contained in:
parent
3a854cacd1
commit
b8bafcf0ed
|
@ -140,7 +140,7 @@ gcode:
|
||||||
[gcode_macro QUERY_BME280]
|
[gcode_macro QUERY_BME280]
|
||||||
default_parameter_SENSOR: bme280 my_sensor
|
default_parameter_SENSOR: bme280 my_sensor
|
||||||
gcode:
|
gcode:
|
||||||
{printer.gcode.action_respond_info(
|
{action_respond_info(
|
||||||
"Temperature: %.2f C\n"
|
"Temperature: %.2f C\n"
|
||||||
"Pressure: %.2f hPa\n"
|
"Pressure: %.2f hPa\n"
|
||||||
"Humidity: %.2f%%" % (
|
"Humidity: %.2f%%" % (
|
||||||
|
@ -171,7 +171,7 @@ gcode:
|
||||||
[gcode_macro QUERY_HTU21D]
|
[gcode_macro QUERY_HTU21D]
|
||||||
default_parameter_SENSOR: htu21d my_sensor
|
default_parameter_SENSOR: htu21d my_sensor
|
||||||
gcode:
|
gcode:
|
||||||
{printer.gcode.action_respond_info(
|
{action_respond_info(
|
||||||
"Temperature: %.2f C\n"
|
"Temperature: %.2f C\n"
|
||||||
"Humidity: %.2f%%" % (
|
"Humidity: %.2f%%" % (
|
||||||
printer[SENSOR].temperature,
|
printer[SENSOR].temperature,
|
||||||
|
|
Loading…
Reference in New Issue