Skip to content

Commit

Permalink
Fix for ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
AronHetLam committed Aug 14, 2023
1 parent 5dc1f66 commit b6aa313
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ATEM_tally_light/ATEM_tally_light.ino
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,11 @@ void handleRoot() {
case WL_DISCONNECTED:
html += "Station mode disabled";
break;
#if ESP32
default:
#else
case -1:
#endif
html += "Timeout";
break;
}
Expand Down
4 changes: 4 additions & 0 deletions ATEM_tally_test_server/ATEM_tally_test_server.ino
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,11 @@ void handleRoot() {
case WL_DISCONNECTED:
html += "Station mode disabled";
break;
#if ESP32
default:
#else
case -1:
#endif
html += "Timeout";
break;
}
Expand Down
7 changes: 6 additions & 1 deletion libraries/ATEMmin/ATEMmin.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ you can keep a clear conscience: http://skaarhoj.com/about/licenses/

#include "Arduino.h"
#include "ATEMbase.h"
#include "EthernetUdp.h"

#if defined ESP8266 || defined ESP32
#include <WifiUDP.h>
#else
#include <EthernetUdp.h>
#endif


class ATEMmin : public ATEMbase
Expand Down

0 comments on commit b6aa313

Please sign in to comment.