esp-rs / esp-wifi-sys

Wi-Fi and BT drivers packaged for integration into bare-metal esp-wifi.
Apache License 2.0
401 stars 94 forks source link

Signed bitfields are broken in `rust-bindgen` #482

Open ProfFan opened 1 month ago

ProfFan commented 1 month ago

See https://github.com/rust-lang/rust-bindgen/issues/1160

I discovered this issue in wifi_pkt_rx_ctrl_t, but same problems could be in other places as well.

Appearance of the bug: all negative values such as the RSSI are instead shown as 2's complement (-xx to 2xx)