1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

add new tool path to .gitignore

add yield in hexdump to handle big dumps better.
This commit is contained in:
Markus Sattler 2015-05-18 19:56:08 +02:00
parent 5ff65d418f
commit 3b059e2ef4
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -72,3 +72,4 @@ nbproject
build/macosx/esptool-*-osx.zip build/macosx/esptool-*-osx.zip
build/macosx/dist/osx-xtensa-lx106-elf.tgz build/macosx/dist/osx-xtensa-lx106-elf.tgz
/hardware/esp8266com/esp8266/tools

View File

@ -26,6 +26,7 @@ void ICACHE_RAM_ATTR hexdump(uint8_t *mem, uint32_t len, uint8_t cols) {
for(uint32_t i = 0; i < len; i++) { for(uint32_t i = 0; i < len; i++) {
if(i % cols == 0) { if(i % cols == 0) {
os_printf("\n[0x%08X] 0x%08X: ", mem, i); os_printf("\n[0x%08X] 0x%08X: ", mem, i);
yield();
} }
os_printf("%02X ", *mem); os_printf("%02X ", *mem);
mem++; mem++;