Skip to content

Commit

Permalink
src: server: protocol: websocket: Integration - Change pwm_enable()
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin authored and patrickelectric committed Apr 9, 2024
1 parent d190ab6 commit 51f9e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/protocols/v1/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fn request_endpoint(request: &str) -> String {
if v.len() == 4 {
match serde_json::from_str::<ApiPwmEnable>(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!(
Expand Down

0 comments on commit 51f9e14

Please sign in to comment.