Skip to content

Commit 7a304a0

Browse files
committed
Reduce Bootloader Size
changing few uint16 variables to uint8
1 parent f71ed97 commit 7a304a0

File tree

3 files changed

+205
-208
lines changed

3 files changed

+205
-208
lines changed

Bootloader/MyOtaBootloader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ static uint8_t sendAndWait(uint8_t reqType, uint8_t resType) {
5656
msg.type = reqType;
5757
for (uint8_t i = 0; i < 10; i++) {
5858
sendWrite(msg);
59-
for (uint16_t j = 0; j < 20; j++) {
59+
for (uint8_t j = 0; j < 20; j++) {
6060
wdt_reset();
61-
for (uint16_t j = 0; j < 100; j++) {
61+
for (uint8_t j = 0; j < 100; j++) {
6262
wdt_reset();
6363
uint8_t pipe;
6464
boolean avail = available(&pipe);

0 commit comments

Comments
 (0)