Skip to content

Commit b688961

Browse files
committed
1 parent b0dc9fe commit b688961

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rust-esp32-std-demo"
3-
version = "0.26.0"
3+
version = "0.26.1"
44
authors = ["ivmarkov"]
55
edition = "2018"
66
categories = ["embedded", "hardware-support"]

src/main.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,8 @@ fn httpd_ulp_endpoints(
12161216
mutex: Arc<(Mutex<Option<u32>>, Condvar)>,
12171217
) -> Result<()> {
12181218
use embedded_svc::http::server::registry::Registry;
1219-
use embedded_svc::http::server::Response;
1219+
use embedded_svc::http::server::{Request, Response};
1220+
use embedded_svc::io::adapters::ToStd;
12201221

12211222
server
12221223
.handle_get("/ulp", |_req, resp| {
@@ -1239,7 +1240,7 @@ fn httpd_ulp_endpoints(
12391240
.handle_post("/ulp_start", move |mut req, resp| {
12401241
let mut body = Vec::new();
12411242

1242-
ToStd(req.into_reader()?).read_to_end(&mut body)?;
1243+
ToStd::new(req.reader()).read_to_end(&mut body)?;
12431244

12441245
let cycles = url::form_urlencoded::parse(&body)
12451246
.filter(|p| p.0 == "cycles")

0 commit comments

Comments
 (0)