fix display or direction in pretty telegram

This commit is contained in:
MichaelDvP
2020-11-15 17:28:27 +01:00
parent 6ae61d742f
commit b782993eb4
3 changed files with 7 additions and 5 deletions

View File

@@ -471,7 +471,7 @@ std::string EMSESP::pretty_telegram(std::shared_ptr<const Telegram> telegram) {
type_name = read_flash_string(F("?"));
}
if (telegram->dest & 0x80) {
if (telegram->operation == Telegram::Operation::RX_READ) {
direction = read_flash_string(F("<-"));
} else {
direction = read_flash_string(F("->"));