Skip to content

Commit

Permalink
Merge pull request #895 from quartiq/bump
Browse files Browse the repository at this point in the history
really bump menu, rm unused crates
  • Loading branch information
jordens committed May 6, 2024
2 parents 71fb265 + 8e34181 commit 20e0808
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 41 deletions.
42 changes: 9 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ mcp230xx = "1.0"
mutex-trait = "0.2"
fugit = "0.3"
rtt-logger = "0.2"
systick-monotonic = "1.0"
mono-clock = "0.1"
spin = { version = "0.9", default-features = false, features = ["spin_mutex"]}
shared-bus = { version = "0.3", features = ["cortex-m"] }
Expand All @@ -73,7 +72,6 @@ miniconf = { version = "0.11", features = ["json-core", "derive", "postcard"] }
miniconf_mqtt = "0.11"
tca9539 = "0.2"
smoltcp-nal = { version = "0.5", features = ["shared-stack"] }
bbqueue = "0.5"
postcard = "1"
bit_field = "0.10.2"

Expand Down
2 changes: 1 addition & 1 deletion serial-settings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
miniconf = {version = "0.11", features = ["json-core"]}

menu = {git = "https://github.com/rust-embedded-community/menu", rev = "7ba884993fea57c3661d0f9d7c3cdca639a48701", features = ["echo"]}
menu = {version = "0.5", features = ["echo"]}
heapless = "0.8"
embedded-io = "0.6"
yafnv = "0.1"
10 changes: 5 additions & 5 deletions serial-settings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ impl<'a, P: Platform<Y>, const Y: usize> Interface<'a, P, Y> {
_menu: &menu::Menu<Self, P::Settings>,
item: &menu::Item<Self, P::Settings>,
args: &[&str],
_settings: &mut P::Settings,
interface: &mut Self,
_settings: &mut P::Settings,
) {
let key = menu::argument_finder(item, args, "cmd").unwrap().unwrap();
interface.platform.cmd(key)
Expand All @@ -114,8 +114,8 @@ impl<'a, P: Platform<Y>, const Y: usize> Interface<'a, P, Y> {
_menu: &menu::Menu<Self, P::Settings>,
_item: &menu::Item<Self, P::Settings>,
_args: &[&str],
settings: &mut P::Settings,
interface: &mut Self,
settings: &mut P::Settings,
) {
let mut defaults = settings.clone();
defaults.reset();
Expand Down Expand Up @@ -191,8 +191,8 @@ impl<'a, P: Platform<Y>, const Y: usize> Interface<'a, P, Y> {
_menu: &menu::Menu<Self, P::Settings>,
item: &menu::Item<Self, P::Settings>,
args: &[&str],
settings: &mut P::Settings,
interface: &mut Self,
settings: &mut P::Settings,
) {
if let Some(key) = menu::argument_finder(item, args, "item").unwrap() {
let mut defaults = settings.clone();
Expand Down Expand Up @@ -236,8 +236,8 @@ impl<'a, P: Platform<Y>, const Y: usize> Interface<'a, P, Y> {
_menu: &menu::Menu<Self, P::Settings>,
item: &menu::Item<Self, P::Settings>,
args: &[&str],
settings: &mut P::Settings,
interface: &mut Self,
settings: &mut P::Settings,
) {
let key = menu::argument_finder(item, args, "item").unwrap().unwrap();
match settings.get_json(key, interface.buffer) {
Expand All @@ -259,8 +259,8 @@ impl<'a, P: Platform<Y>, const Y: usize> Interface<'a, P, Y> {
_menu: &menu::Menu<Self, P::Settings>,
item: &menu::Item<Self, P::Settings>,
args: &[&str],
settings: &mut P::Settings,
interface: &mut Self,
settings: &mut P::Settings,
) {
let key = menu::argument_finder(item, args, "item").unwrap().unwrap();
let value =
Expand Down

0 comments on commit 20e0808

Please sign in to comment.