mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8e34598ca | ||
|
|
77086b8ecf | ||
|
|
93f3935480 |
@@ -271,7 +271,7 @@ int SerialKlipperPrinter::get_power_devices_count()
|
|||||||
bool SerialKlipperPrinter::set_power_device_state(const char* device_name, bool state)
|
bool SerialKlipperPrinter::set_power_device_state(const char* device_name, bool state)
|
||||||
{
|
{
|
||||||
String request = "/machine/device_power/device?device=" + urlEncode(device_name) + "&action=" + (state ? "on" : "off");
|
String request = "/machine/device_power/device?device=" + urlEncode(device_name) + "&action=" + (state ? "on" : "off");
|
||||||
return make_serial_request_nocontent(HttpGet, request.c_str());
|
return make_serial_request_nocontent(HttpPost, request.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CYD_S3
|
#ifdef CYD_S3
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "7125:7125"
|
- "7125:7125"
|
||||||
- "8110:8110"
|
- "8110:8110"
|
||||||
image: ghcr.io/mainsail-crew/virtual-klipper-printer:master
|
image: ghcr.io/mainsail-crew/virtual-klipper-printer:latest
|
||||||
webui:
|
webui:
|
||||||
container_name: mainsail
|
container_name: mainsail
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user