Skip to content

Commit

Permalink
🐛 printing: newline, checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen-tw committed Mar 15, 2021
1 parent d393c2c commit 98ceec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion impl-rs/src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Shell {
let kb = Keyboard::parse(uart::getc());
match kb {
Keyboard::NewLine(_) => {
print!("{}", "\n");
print!("{}", "\r\n");
log!("Press enter!");
self.log_buffer_status();
break;
Expand Down
1 change: 1 addition & 0 deletions scripts/transfer_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def main():
local_checksum = 0
for i, b in enumerate(img.bytes()):
local_checksum += int(b[0])
local_checksum %= 856039
if i < 5:
# list of 1 bytes
d = b[0]
Expand Down

0 comments on commit 98ceec5

Please sign in to comment.