Hi, I was trying to build this project but had this error:
user@raspberrypi:~/rust_ethercat/ethercat $ cargo build
Compiling ethercat v0.2.3 (/home/dab/rust_ethercat/ethercat)
error[E0308]: mismatched types
--> src/convert.rs:64:29
|
64 | unsafe { CStr::from_ptr(data).to_string_lossy().into_owned() }
| -------------- ^^^^ expected `u8`, found `i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: associated function defined here
--> /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ffi/c_str.rs:256:25
I'm on a raspberry pi 400 with latest 64bit raspberry pi OS.
Ethercat from igh is installed and working (and master is started).
Rust and Cargo version are 1.67.1
Hi, I was trying to build this project but had this error:
I'm on a raspberry pi 400 with latest 64bit raspberry pi OS. Ethercat from igh is installed and working (and master is started). Rust and Cargo version are 1.67.1
is it a known issue?