Decawave / mynewt-dw1000-core

[DEPRECATED] Use https://github.com/Decawave/uwb-core for new designs.
Apache License 2.0
57 stars 34 forks source link

Fix DW1000 shell cmd struct initialization #24

Closed Beetix closed 4 years ago

Beetix commented 4 years ago

I was getting the following error when compiling the twr_node_tdma example:

Error: repos/mynewt-dw1000-core/hw/drivers/uwb/uwb_dw1000/src/dw1000_cli.c:71:5: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     &cmd_dw1000_help
     ^

I turns out a field name was missing on a struct initialization.

ncasaril commented 4 years ago

Thanks!