-void print_S(const char *s)
-{
- if (!print_enable) return;
- char c;
-
- while (1) {
- c = *s++;
- if (!c) break;
- if (c == '\n') sendchar('\r');
- sendchar(c);
- }
-}
-
-void print_P(const char *s)
-{
- if (!print_enable) return;
- char c;
-
- while (1) {
- c = pgm_read_byte(s++);
- if (!c) break;
- if (c == '\n') sendchar('\r');
- sendchar(c);
- }
-}
-
-void phex1(unsigned char c)
-{
- if (!print_enable) return;
- sendchar(c + ((c < 10) ? '0' : 'A' - 10));
-}