Skip to content

Commit 38dfb70

Browse files
committed
Update rcx to crates.io version
1 parent 820db97 commit 38dfb70

File tree

5 files changed

+60
-57
lines changed

5 files changed

+60
-57
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Added
99
* Control basic RCX functions
1010
* Compile NQC programs via `nqc` binary
11+
* Basic RCX bytecode disassembly
1112

1213
### Changed
1314

Cargo.lock

+50-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ futures = "0.3"
1818
lazy_static = "1"
1919
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
2020
uuid = "1"
21-
rcx = "0.1.2"
21+
rcx = "0.1.3"
2222
nom = "7.1.3"
2323
hex = "0.4.3"
2424
tracing = "0.1.40"
@@ -30,5 +30,5 @@ hex-literal = "0.4.1"
3030
# version = "0.3"
3131
# path = "../lego-powered-up/lego-powered-up"
3232

33-
[patch.crates-io]
34-
rcx = { path = "../rcx/rcx" }
33+
# [patch.crates-io]
34+
# rcx = { path = "../rcx/rcx" }

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use color_eyre::Result;
22

3-
#[macro_use]
4-
extern crate tracing;
3+
// #[macro_use]
4+
// extern crate tracing;
55

66
mod argparse;
77
mod powered_up;

src/rcx.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ pub fn program(slot: u8, file: PathBuf) -> Result<()> {
103103
idx as i16 + 1
104104
};
105105
println!("Chunk {}, len {}", idx, data_chunk.len());
106-
rcx.begin_task_chunk(section.number, data_chunk.len().try_into()?)?;
106+
rcx.start_task_download(
107+
section.number,
108+
data_chunk.len().try_into()?,
109+
)?;
107110
rcx.transfer_data(
108111
idx,
109112
data_chunk.len().try_into()?,

0 commit comments

Comments
 (0)