We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef696e commit 3093057Copy full SHA for 3093057
src/webui.c
@@ -8851,14 +8851,10 @@ static void _webui_print_ascii(const char* data, size_t len) {
8851
// may have ASCII and `0x00` inside text, as well as other non-ascii bytes
8852
for (size_t i = 0; i < len; i++) {
8853
register unsigned char c = (unsigned char)* data;
8854
- if (c == 0x00) {
8855
- _webui_log_debug("%c", 0xCF); // Print `¤` | TODO: Maybe we can simply print a blank space?
+ if (c < 32 || c > 126) {
+ _webui_log_debug("[0x%02X]", c);
8856
} else {
8857
- if (c < 32 || c > 126) {
8858
- _webui_log_debug("[0x%02X]", c);
8859
- } else {
8860
- _webui_log_debug("%c", c);
8861
- }
+ _webui_log_debug("%c", c);
8862
}
8863
data++;
8864
0 commit comments