eth_server: modify scpi tree

This commit is contained in:
occheung 2020-09-04 13:30:22 +08:00
parent 56cb6eb3fd
commit 6184e58308
1 changed files with 11 additions and 23 deletions

View File

@ -76,7 +76,7 @@ use firmware::{
cpld::{
CPLD,
},
scpi::{ HelloWorldCommand, SwitchOnCommand },
scpi::{ HelloWorldCommand, Channel1SwitchCommand },
Urukul,
};
use scpi::prelude::*;
@ -318,25 +318,6 @@ fn main() -> ! {
//
scpi_crate_version!(),
//Test
Node {
name: b"ABORt",
handler: None,
optional: false,
sub: &[],
},
Node {
name: b"INITiate",
handler: None,
optional: false,
sub: &[
Node {
name: b"IMMediate",
handler: None,
optional: true,
sub: &[],
}
],
},
Node {
name: b"EXAMple",
optional: true,
@ -358,10 +339,17 @@ fn main() -> ! {
],
},
Node {
name: b"SWitch",
name: b"CHANNEL1",
optional: false,
handler: Some(&SwitchOnCommand {}),
sub: &[],
handler: None,
sub: &[
Node {
name: b"SWitch",
optional: false,
handler: Some(&Channel1SwitchCommand {}),
sub: &[],
}
],
}
];