Skip to content

Commit e84d346

Browse files
committed
Adjust print to console
1 parent a107e88 commit e84d346

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libraries/Nano33_System/examples/Nano33_updateBootloader/Nano33_updateBootloader.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ void applyUpdate(uint32_t address) {
5353
long len = 0;
5454

5555
const uint32_t page_size = flash.get_page_size();
56-
Serial.print("Page size: ");
57-
Serial.println(page_size);
56+
//Serial.print("Page size: ");
57+
//Serial.println(page_size);
5858
char *page_buffer = new char[page_size];
5959
uint32_t addr = address;
6060
if (addr == MBR_ADDR) {
@@ -65,8 +65,8 @@ void applyUpdate(uint32_t address) {
6565
len = nano33_bootloader_hex_len;
6666
}
6767
uint32_t sector_size = flash.get_sector_size(addr);
68-
Serial.print("Sector size: ");
69-
Serial.println(sector_size);
68+
//Serial.print("Sector size: ");
69+
//Serial.println(sector_size);
7070
uint32_t next_sector = addr + sector_size;
7171
bool sector_erased = false;
7272
size_t pages_flashed = 0;
@@ -101,6 +101,7 @@ void applyUpdate(uint32_t address) {
101101
Serial.println("Flashed " + String(percent_done) + "%");
102102

103103
}
104+
Serial.println();
104105

105106
delete[] page_buffer;
106107
}

0 commit comments

Comments
 (0)