Skip to content

Commit 2d678e0

Browse files
committed
pico: remove printfs in PROG handling
The tools assume that any output during this command is an error
1 parent 071a3d1 commit 2d678e0

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

32blit-pico/blit_launch.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,6 @@ bool BlitWriter::prepare_write(const uint8_t *buf) {
467467
}
468468
#endif
469469

470-
printf("PROG: flash off %lu\n", flash_offset);
471-
472470
disable_user_code();
473471

474472
// erase flash

32blit-pico/usb.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class CDCProgCommand final : public CDCCommand {
7575

7676
// end of string
7777
if(*buf_ptr == 0) {
78-
printf("PROG: file %s\n", buf.get_data());
7978
parse_state = ParseState::Length;
8079
buf.reset();
8180
continue;
@@ -98,7 +97,6 @@ class CDCProgCommand final : public CDCCommand {
9897
// end of string
9998
if(*buf_ptr == 0) {
10099
auto file_len = strtoul((const char *)buf.get_data(), nullptr, 10);
101-
printf("PROG: len %lu\n", file_len);
102100
parse_state = ParseState::Data;
103101
buf.reset();
104102

0 commit comments

Comments
 (0)