Commit 5d10928
fix(bindings): correct otRadioCaps type to u16 for riscv32imac
The riscv32imac bindings incorrectly defined otRadioCaps as u8, but
OT_RADIO_CAPS_RX_ON_WHEN_IDLE = 256 which doesn't fit in u8.
This caused the capability to be silently truncated to 0, preventing
OpenThread from calling otPlatRadioSetRxOnWhenIdle callback.
Changes:
- Change otRadioCaps from u8 to u16 in riscv32imac bindings
- Add missing OT_RADIO_CAPS_RX_ON_WHEN_IDLE constant (256)
- Use proper import in lib.rs instead of local const
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Aleksei Sviridkin <[email protected]>1 parent 8e42bae commit 5d10928
File tree
2 files changed
+4
-4
lines changed- openthread-sys/src/include
- openthread/src
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2830 | 2830 | | |
2831 | 2831 | | |
2832 | 2832 | | |
2833 | | - | |
| 2833 | + | |
2834 | 2834 | | |
2835 | 2835 | | |
2836 | 2836 | | |
| |||
2849 | 2849 | | |
2850 | 2850 | | |
2851 | 2851 | | |
| 2852 | + | |
| 2853 | + | |
2852 | 2854 | | |
2853 | 2855 | | |
2854 | 2856 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
1427 | 1427 | | |
1428 | 1428 | | |
1429 | 1429 | | |
1430 | | - | |
1431 | | - | |
1432 | 1430 | | |
1433 | 1431 | | |
1434 | 1432 | | |
| |||
0 commit comments