diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-05-14 11:33:54 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-05-14 11:33:54 +0300 |
| commit | d31ad49fdc654352322da85da921e6e0423d98bd (patch) | |
| tree | 265b114ec0edcca845cbf6394dacb3e44fa5936f /Software/Embedded_SW/Embedded/Communication/Connection.c | |
| parent | d7530fe9e5c7e95c59966fd548200cb1e80ff07b (diff) | |
| download | Tango-d31ad49fdc654352322da85da921e6e0423d98bd.tar.gz Tango-d31ad49fdc654352322da85da921e6e0423d98bd.zip | |
Version 1.3.10.1 Support for lubricant valve in tech board. double reporting bug, winding - small change. keepalive failure restarts usb driver. some traces.
Diffstat (limited to 'Software/Embedded_SW/Embedded/Communication/Connection.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Communication/Connection.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Software/Embedded_SW/Embedded/Communication/Connection.c b/Software/Embedded_SW/Embedded/Communication/Connection.c index 3063e1ebe..50f23d26e 100644 --- a/Software/Embedded_SW/Embedded/Communication/Connection.c +++ b/Software/Embedded_SW/Embedded/Communication/Connection.c @@ -146,20 +146,20 @@ void KeepAliveOneSecondCall(void) if (KeepAliveActive == false) return; KeepAliveOneSecondCounter++; - if (KeepAliveOneSecondCounter > 5) + if (KeepAliveOneSecondCounter > KEEPALIVE_COMMUNICATION_ABORT_LIMIT) { Report("keepalive ",__FILE__,__LINE__,KeepAliveOneSecondCounter,RpWarning,msec_millisecondCounter, 0); //LOG_ERROR(KeepAliveOneSecondCounter, "Communication keepalive failed"); KeepAliveOneSecondCounter = 0; - /*KeepAliveActive = false; + KeepAliveActive = false; ReportStopReporting(); DiagnosticsStop(); JobStopReporting(); AlarmHandlingStop(); //CommunicationMailboxFlush(); - USBCDCD_Reinit(); + + USBCDCD_init(); + //USBCDCD_Reinit(); //UART_ResetBuffers(); - * - */ } } |
