Skip to content

Commit 2831ed7

Browse files
committed
KARadioProtocol
1 parent 8fb643f commit 2831ed7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/AudioTools/AudioLibs/KARadioProtocol.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ class KARadioProtocol : public AudioPlayerProtocol {
195195
LOGI("command: %s (%s)", name.c_str(), arg.c_str());
196196
assert(p_player != nullptr);
197197

198+
// ignore empty commands
199+
if (name.isEmpty()) return false;
200+
198201
for (Action& act : actions) {
199202
if (name.equals(act.cmd)) {
200203
return act.callback(*p_player, name, arg, result, this);

src/AudioTools/AudioLibs/KARadioProtocolServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace audio_tools {
66

77
/***
8-
* @brief KA-Radio Protocol Server which provides the KA-Radio protocol over
8+
* @brief KA-Radio Protocol Server which provides the KARadioProtocol over
99
* http to control the audio player provided by the audiotools.
1010
* @ingroup player
1111
* @author Phil Schatzmann

0 commit comments

Comments
 (0)