add header row to dump_reg

This commit is contained in:
Morgan 'ARR\!' Allen 2020-02-27 08:18:23 -08:00
parent 45eb4c37f6
commit 8a172eac86

View file

@ -186,9 +186,16 @@ uint8_t lora32_data_available(lora32_cfg_t *lora) {
} }
void lora32_dump_regs(lora32_cfg_t *lora) { void lora32_dump_regs(lora32_cfg_t *lora) {
uint8_t i;
char endline[17] = {0}; char endline[17] = {0};
for(uint8_t i = 0; i < 127; i++) { printf(" ");
for(i = 0; i < 16; i++)
printf(" %X%s", i, (i % 2 == 1 ? " " : ""));
printf("\n");
for(i = 0; i < 127; i++) {
if(i % 16 == 0) if(i % 16 == 0)
printf("0x%02X: ", i); printf("0x%02X: ", i);