Skip to content

Commit

Permalink
update for cortex-m sys_reset (#96)
Browse files Browse the repository at this point in the history
* update rust

* update cortex-m fork

* travis: improve rust-toolchain conflict message
  • Loading branch information
hdhoang authored Apr 13, 2019
1 parent 700351f commit 73f4d4e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: rust
rust: nightly-2019-02-27
rust: nightly-2019-03-22
os:
- linux
- osx
Expand Down Expand Up @@ -30,7 +30,7 @@ before_install:
rust_toolchain="$(cat rust-toolchain)"
travis_yml="$(grep '^rust: ' .travis.yml | head -n 1 | sed -E 's/^rust: //')"
if [[ $travis_yml != $rust_toolchain ]]; then
echo "error: the nightly version in $1 is different than the one in rust-toolchain!" 1>&2
echo "error: the rust version in travis is different from the one in rust-toolchain!" 1>&2
exit 1
fi
Expand Down
34 changes: 17 additions & 17 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2019-02-27
nightly-2019-03-22
2 changes: 1 addition & 1 deletion src/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Keyboard {
let action = self.get_action(key);
if pressed && Action::Reset == action {
crate::heprintln!("system reset").ok();
SCB::system_reset2()
SCB::sys_reset()
}
if pressed && Action::UsbToggle == action {
self.send_usb_report = !self.send_usb_report;
Expand Down

0 comments on commit 73f4d4e

Please sign in to comment.