Commit 79eb4107 authored by TMRh20's avatar TMRh20

Merge pull request #28 from lnxbil/printDetails-fix

character fix
parents 04165e4d 422495ad
...@@ -314,7 +314,7 @@ void RF24::print_observe_tx(uint8_t value) ...@@ -314,7 +314,7 @@ void RF24::print_observe_tx(uint8_t value)
void RF24::print_byte_register(const char* name, uint8_t reg, uint8_t qty) void RF24::print_byte_register(const char* name, uint8_t reg, uint8_t qty)
{ {
char extra_tab = strlen_P(name) < 8 ? '\t' : 0; char extra_tab = strlen_P(name) < 8 ? '\t' : '\a';
printf_P(PSTR(PRIPSTR"\t%c ="),name,extra_tab); printf_P(PSTR(PRIPSTR"\t%c ="),name,extra_tab);
while (qty--) while (qty--)
printf_P(PSTR(" 0x%02x"),read_register(reg++)); printf_P(PSTR(" 0x%02x"),read_register(reg++));
...@@ -325,7 +325,7 @@ void RF24::print_byte_register(const char* name, uint8_t reg, uint8_t qty) ...@@ -325,7 +325,7 @@ void RF24::print_byte_register(const char* name, uint8_t reg, uint8_t qty)
void RF24::print_address_register(const char* name, uint8_t reg, uint8_t qty) void RF24::print_address_register(const char* name, uint8_t reg, uint8_t qty)
{ {
char extra_tab = strlen_P(name) < 8 ? '\t' : 0; char extra_tab = strlen_P(name) < 8 ? '\t' : '\a';
printf_P(PSTR(PRIPSTR"\t%c ="),name,extra_tab); printf_P(PSTR(PRIPSTR"\t%c ="),name,extra_tab);
while (qty--) while (qty--)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment