Skip to content

Commit

Permalink
page length
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Nov 28, 2018
1 parent 48506f4 commit 945aedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ impl CommandDecoder {
CMD_WPAGE => {
// let num_expected_bytes: usize = INT_PAGE_SIZE + 4;
// if self.count == num_expected_bytes {
let payload = &self.buffer[0..];
let payload = &self.buffer[0..self.count];
let address = LittleEndian::read_u32(&payload[0..4]);
Ok(Some(Command::WritePage {
address,
Expand Down

0 comments on commit 945aedf

Please sign in to comment.