mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
Don't send gcode requests twice
This commit is contained in:
@@ -53,8 +53,6 @@ void send_gcode(bool wait, const char *gcode)
|
|||||||
if (global_config.auth_configured)
|
if (global_config.auth_configured)
|
||||||
client.addHeader("X-Api-Key", global_config.klipper_auth);
|
client.addHeader("X-Api-Key", global_config.klipper_auth);
|
||||||
|
|
||||||
int httpCode = client.GET();
|
|
||||||
|
|
||||||
if (!wait)
|
if (!wait)
|
||||||
{
|
{
|
||||||
client.setTimeout(1000);
|
client.setTimeout(1000);
|
||||||
|
|||||||
Reference in New Issue
Block a user