forked from M-Labs/nac3
Testing for config.
This commit is contained in:
parent
a55a6291a4
commit
f43ad05be5
|
@ -46,9 +46,18 @@ pub fn main_core0() {
|
||||||
|
|
||||||
ram::init_alloc_linker();
|
ram::init_alloc_linker();
|
||||||
|
|
||||||
match config::read_str("foo") {
|
let mut cfg = config::Config::new().unwrap();
|
||||||
Ok(val) => info!("read: {}", val),
|
match cfg.read_str("FOO") {
|
||||||
Err(error) => info!("failed to read config: {}", error),
|
Ok(val) => info!("FOO = {}", val),
|
||||||
|
Err(error) => info!("failed to read config FOO: {}", error),
|
||||||
|
}
|
||||||
|
match cfg.read_str("BAR") {
|
||||||
|
Ok(val) => info!("BAR = {}", val),
|
||||||
|
Err(error) => info!("failed to read config BAR: {}", error),
|
||||||
|
}
|
||||||
|
match cfg.read_str("FOOBAR") {
|
||||||
|
Ok(val) => info!("read FOOBAR = {}", val),
|
||||||
|
Err(error) => info!("failed to read config FOOBAR: {}", error),
|
||||||
}
|
}
|
||||||
|
|
||||||
if devc::DevC::new().is_done() {
|
if devc::DevC::new().is_done() {
|
||||||
|
|
Loading…
Reference in New Issue