orion-rfsrcmain.rs
| 1 | fn main() { |
| 2 | // It is necessary to call this function once. Otherwise, some patches to the runtime |
| 3 | // implemented by esp-idf-sys might not link properly. See https://github.com/esp-rs/esp-idf-template/issues/71 |
| 4 | esp_idf_svc::sys::link_patches(); |
| 5 | |
| 6 | // Bind the log crate to the ESP Logging facilities |
| 7 | esp_idf_svc::log::EspLogger::initialize_default(); |
| 8 | |
| 9 | log::info!("Hello, world!"); |
| 10 | } |