1515
1616#define IDLE_TIME 500 // Idle tolerance in microseconds (roughly three characters at 62500 baud)
1717
18+ // systemBus SYSTEM_BUS.;
19+
1820static QueueHandle_t reset_evt_queue = NULL ;
1921
2022static void IRAM_ATTR comlynx_reset_isr_handler (void *arg)
@@ -81,8 +83,8 @@ void virtualDevice::comlynx_send(uint8_t b)
8183 Debug_printf (" comlynx_send_buffer: %X\n " , b);
8284
8385 // Wait for idle only when in UDPStream mode
84- if (ComLynx ._udpDev ->udpstreamActive )
85- ComLynx .wait_for_idle ();
86+ if (SYSTEM_BUS ._udpDev ->udpstreamActive )
87+ SYSTEM_BUS .wait_for_idle ();
8688
8789 // Write the byte
8890 fnUartBUS.write (b);
@@ -97,8 +99,8 @@ void virtualDevice::comlynx_send_buffer(uint8_t *buf, unsigned short len)
9799 // Debug_printf("comlynx_send_buffer: len:%d %0X %0X %0X %0X %0X %0X\n", len, buf[0], buf[1], buf[2], buf[3], buf[4], buf[len-1]);
98100
99101 // Wait for idle only when in UDPStream mode
100- if (ComLynx ._udpDev ->udpstreamActive )
101- ComLynx .wait_for_idle ();
102+ if (SYSTEM_BUS ._udpDev ->udpstreamActive )
103+ SYSTEM_BUS .wait_for_idle ();
102104
103105 fnUartBUS.write (buf, len);
104106 fnUartBUS.readBytes (buf, len);
@@ -270,7 +272,7 @@ void virtualDevice::comlynx_process(uint8_t b)
270272
271273void virtualDevice::comlynx_control_status ()
272274{
273- // ComLynx .start_time = esp_timer_get_time();
275+ // SYSTEM_BUS .start_time = esp_timer_get_time();
274276 comlynx_response_status ();
275277}
276278
@@ -561,9 +563,7 @@ void systemBus::setRedeyeGameRemap(uint32_t remap)
561563{
562564 Debug_printf("setComlynxIdleTime, %d\n", idle_time);
563565
564- ComLynx .comlynx_idle_time = idle_time;
566+ SYSTEM_BUS .comlynx_idle_time = idle_time;
565567}*/
566568
567-
568- systemBus ComLynx;
569- #endif /* BUILD_LYNX */
569+ #endif /* BUILD_LYNX */
0 commit comments