pc-hosted: Display morse message on controlling terminal.

This commit is contained in:
Uwe Bonnes 2019-08-31 17:08:14 +02:00
parent 80a9fd51ca
commit 86d0be9708

View File

@ -59,8 +59,14 @@ static char morse_repeat;
void morse(const char *msg, char repeat) void morse(const char *msg, char repeat)
{ {
morse_msg = morse_ptr = msg; #if defined(PC_HOSTED)
if (msg)
DEBUG("%s\n", msg);
(void) repeat;
#else
morse_msg = morse_ptr = msg;
morse_repeat = repeat; morse_repeat = repeat;
#endif
} }
bool morse_update(void) bool morse_update(void)