From 5558cfc010e0fd9a8f63b08753a848fe60e2748c Mon Sep 17 00:00:00 2001 From: Raul Victor Trombin Date: Mon, 8 Apr 2024 15:18:43 -0300 Subject: [PATCH] src: server: protocol: websocket: Integration - Change pwm_enable() --- src/server/protocols/v1/websocket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/protocols/v1/websocket.rs b/src/server/protocols/v1/websocket.rs index fabd68e..e08d28a 100644 --- a/src/server/protocols/v1/websocket.rs +++ b/src/server/protocols/v1/websocket.rs @@ -221,7 +221,7 @@ fn request_endpoint(request: &str) -> String { if v.len() == 4 { match serde_json::from_str::(v[3]) { Ok(data) => { - let _package = packages::pwm_enable(data.enable); + let _package = packages::set_pwm_enable(data.enable); json!("Ok: Command received").to_string() } Err(err) => json!(format!(