mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
Merge branch 'master' of https://github.com/suchmememanyskill/CYD-Klipper-Display
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user