drone-os/drone-core

Error while building v0.12

BenoitSen opened this issue · 0 comments

When building the crate with cargo build or when building a project with just build, I get the following error :

   Compiling drone-config v0.12.0 (drone-os/drone/config)
   Compiling drone-core-macros v0.12.0 (drone-os/drone-core/macros)
error[E0609]: no field `uart` on type `drone_config::config::Probe`
  --> macros/src/log_baud_rate.rs:28:42
   |
28 |         } else if let Some(uart) = probe.uart {
   |                                          ^^^^ unknown field
   |
   = note: available fields are: `gdb_client_command`, `bmp`, `jlink`, `openocd`, `swo`, `dso`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0609`.
error: could not compile `drone-core-macros`.

To learn more, run the command again with --verbose.

Changing probe.uart ligne 28 to probe.dso solves the problem.