Serial macros cleanup
This commit is contained in:
committed by
Scott Lahteine
parent
f0b662ff58
commit
dd42831cba
@@ -40,7 +40,7 @@
|
||||
void host_action(PGM_P const pstr, const bool eol) {
|
||||
PORT_REDIRECT(SERIAL_ALL);
|
||||
SERIAL_ECHOPGM("//action:");
|
||||
serialprintPGM(pstr);
|
||||
SERIAL_ECHOPGM_P(pstr);
|
||||
if (eol) SERIAL_EOL();
|
||||
}
|
||||
|
||||
@@ -86,14 +86,13 @@ void host_action(PGM_P const pstr, const bool eol) {
|
||||
void host_action_notify_P(PGM_P const message) {
|
||||
PORT_REDIRECT(SERIAL_ALL);
|
||||
host_action(PSTR("notification "), false);
|
||||
serialprintPGM(message);
|
||||
SERIAL_EOL();
|
||||
SERIAL_ECHOLNPGM_P(message);
|
||||
}
|
||||
|
||||
void host_action_prompt(PGM_P const ptype, const bool eol=true) {
|
||||
PORT_REDIRECT(SERIAL_ALL);
|
||||
host_action(PSTR("prompt_"), false);
|
||||
serialprintPGM(ptype);
|
||||
SERIAL_ECHOPGM_P(ptype);
|
||||
if (eol) SERIAL_EOL();
|
||||
}
|
||||
|
||||
@@ -101,7 +100,7 @@ void host_action(PGM_P const pstr, const bool eol) {
|
||||
host_action_prompt(ptype, false);
|
||||
PORT_REDIRECT(SERIAL_ALL);
|
||||
SERIAL_CHAR(' ');
|
||||
serialprintPGM(pstr);
|
||||
SERIAL_ECHOPGM_P(pstr);
|
||||
if (extra_char != '\0') SERIAL_CHAR(extra_char);
|
||||
SERIAL_EOL();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user