Skip to content

Commit e44ae57

Browse files
Cleaning up unusued devices on Lynx platform (keyboard and modem) (#1198)
1 parent 1a3c56e commit e44ae57

File tree

9 files changed

+13
-300
lines changed

9 files changed

+13
-300
lines changed

lib/device/comlynx/keyboard.cpp-na

Lines changed: 0 additions & 102 deletions
This file was deleted.

lib/device/comlynx/keyboard.h-na

Lines changed: 0 additions & 35 deletions
This file was deleted.

lib/device/comlynx/serial.cpp-na

Lines changed: 0 additions & 88 deletions
This file was deleted.

lib/device/comlynx/serial.h-na

Lines changed: 0 additions & 71 deletions
This file was deleted.

lib/device/device.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@
8282
#endif
8383

8484
#ifdef BUILD_LYNX
85-
# include "comlynx/modem.h"
85+
//# include "comlynx/modem.h"
8686
# include "comlynx/printer.h"
8787
# include "comlynx/printerlist.h"
8888
# include "comlynx/lynxFuji.h"
8989
# include "comlynx/udpstream.h"
9090

91-
lynxModem *sioR;
91+
//lynxModem *sioR;
9292
lynxUDPStream *udpDev;
9393
#endif
9494

lib/device/modem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#endif
2323

2424
#ifdef BUILD_LYNX
25-
# include "comlynx/modem.h"
26-
extern lynxModem *sioR;
25+
//# include "comlynx/modem.h"
26+
// extern lynxModem *sioR;
2727
#endif
2828

2929
#ifdef BUILD_S100

lib/http/httpService.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#include "sio/sioFuji.h"
2828
#endif /* BUILD_ATARI */
2929

30+
#ifdef BUILD_LYNX
31+
#define NO_MODEM_DEVICE // doesn't have a modem device
32+
#endif
33+
3034
using namespace std;
3135

3236
// Global HTTPD
@@ -570,6 +574,8 @@ esp_err_t fnHttpService::get_handler_modem_sniffer(httpd_req_t *req)
570574
Debug_printf("Modem Sniffer output request handler\n");
571575
#endif
572576

577+
#ifndef NO_MODEM_DEVICE
578+
573579
fnHTTPD.clearErrMsg();
574580

575581
ModemSniffer *modemSniffer = sioR->get_modem_sniffer();
@@ -622,7 +628,10 @@ esp_err_t fnHttpService::get_handler_modem_sniffer(httpd_req_t *req)
622628
Debug_printf("Sniffer dump completed.\n");
623629
#endif
624630

631+
#endif // NO_MODEM_DEVICE
632+
625633
return ESP_OK;
634+
626635
}
627636

628637
esp_err_t fnHttpService::get_handler_mount(httpd_req_t *req)

0 commit comments

Comments
 (0)