Skip to content

Commit 3c05a2b

Browse files
committed
fix: fixes build error.
1 parent a0f8bbb commit 3c05a2b

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

src/applicationInternal/commandHandler.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,6 @@ void receiveEspNowMessage_cb(json payload) {
381381
// Serialize the payload to a string
382382
std::string jsonStr = payload.dump();
383383

384-
// Show the message in the UI
385-
showEspNowMessage(jsonStr);
386-
387384
// TODO: Process the command based on device and command
388385
}
389386
}

src/devices/mediaPlayer/device_appleTV/device_appleTV.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
#include "applicationInternal/hardware/hardwarePresenter.h"
44
#include "device_appleTV.h"
55

6+
#if (ENABLE_HUB_COMMUNICATION == 1)
7+
#include "devices/misc/device_hub_helper.h"
8+
#endif
9+
610
uint16_t APPLETV_UP;
711
uint16_t APPLETV_DOWN;
812
uint16_t APPLETV_LEFT;
@@ -30,8 +34,6 @@ uint16_t APPLETV_STOP;
3034
void register_device_appleTV() {
3135
#if (ENABLE_HUB_COMMUNICATION == 1)
3236
// Register hub commands for Apple TV when Hub is enabled
33-
register_hub_command(&APPLETV_GUI_EVENT_USER_DATA, "APPLE_TV", "GUI_EVENT");
34-
3537
register_hub_command(&APPLETV_POWER_ON, "APPLE_TV", "POWER_ON");
3638
register_hub_command(&APPLETV_POWER_OFF, "APPLE_TV", "POWER_OFF");
3739
register_hub_command(&APPLETV_PLAY_PAUSE, "APPLE_TV", "PLAY_PAUSE");

src/guis/gui_irReceiver.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,3 @@ void notify_tab_before_delete_irReceiver(void) {
189189
void register_gui_irReceiver(void){
190190
register_gui(std::string(tabName_irReceiver), & create_tab_content_irReceiver, & notify_tab_before_delete_irReceiver);
191191
}
192-
193-
void showEspNowMessage(std::string payload) {
194-
lastTopic = "ESP-NOW";
195-
lastPayload = payload;
196-
printMQTTmessage();
197-
}

src/guis/gui_irReceiver.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ void register_gui_irReceiver(void);
1010
void showNewIRmessage(std::string);
1111
void showMQTTmessage(std::string topic, std::string payload);
1212

13-
#if (ENABLE_HUB_COMMUNICATION == 1)
14-
// used by commandHandler to show ESP-NOW messages
15-
void showEspNowMessage(std::string payload);
16-
#endif // ENABLE_HUB_COMMUNICATION
17-
1813
#if (ENABLE_WIFI_AND_MQTT == 1)
1914
// used by commandHandler to show WiFi status
2015
void showMQTTmessage(std::string topic, std::string payload);

0 commit comments

Comments
 (0)