Skip to content

Commit

Permalink
release: v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tfx2001 committed May 1, 2022
1 parent 5d930b8 commit 9769640
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
run: |
outdir="./target/${{ env.TARGET_DIR }}/release"
staging="${{ env.BIN_NAME }}-${{ github.event.release.tag_name }}-${{ matrix.target }}"
mkdir -p "$staging"
cp {README.md,LICENSE,99-hpm_bootrom.rules} "$staging/"
if [ "${{ matrix.os }}" = "windows-2019" ]; then
cp "target/${{ matrix.target }}/release/${{ env.BIN_NAME }}.exe" "$staging/"
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/.idea
/.idea
/bin
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "hpm_isp"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["tfx2001 <2479727366@qq.com>"]
authors = ["tfx2001 <tfx2001@outlook.com>"]
license = "MIT"
description = "ISP tool for HPMicro MCUs."
repository = "https://github.com/tfx2001/hpm_isp"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ sudo udevadm control --reload-rules

## Usage

[![asciicast](https://asciinema.org/a/489666.svg)](https://asciinema.org/a/489666)
[![asciicast](https://asciinema.org/a/491359.svg)](https://asciinema.org/a/491359)
2 changes: 1 addition & 1 deletion src/isp_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ pub trait IspCommand: Interface {
let total_bytes = data.len();

self.write(&packet, mem::size_of::<ReadMemory>() as u16)?;

self.read(&mut packet)?;
let resp = GenericCommandResponse::read_from_prefix(&packet.payload[..]).unwrap();

if resp.status == 0 {
data.chunks_mut(508).try_for_each(|i| {
let length = self.read(&mut packet)?;
Expand Down

0 comments on commit 9769640

Please sign in to comment.