# HG changeset patch # User ideenmodellierer # Date 1576956086 -3600 # Node ID 523892f62ce0fa8aa709b4fe3c3a37109fe5dd9f # Parent 2d980f76503483aec342a2d8a980eaa80d1e31a2 Revert change to keep connection open in case of BlueMod messages: Some problems occure within Subsurface in case the connection is kept open => Reverted diff -r 2d980f765034 -r 523892f62ce0 Discovery/Src/tComm.c --- a/Discovery/Src/tComm.c Mon Dec 02 22:03:05 2019 +0100 +++ b/Discovery/Src/tComm.c Sat Dec 21 20:21:26 2019 +0100 @@ -590,12 +590,6 @@ uint8_t tempHigh, tempLow; count = 0; - // Ignore communication on Text like RING, CONNECT, - if(type == 0xFF) return 0; - if(type < 0x60) - { - return prompt4D4C(receiveStartByteUart); - } // service mode only commands if(receiveStartByteUart == BYTE_SERVICE_MODE) { @@ -636,6 +630,10 @@ totalDiveCount.u16bit = 0; #endif + // Exit communication on Text like RING, CONNECT, ... or 0xFF command + if((type < 0x60) || (type == 0xFF)) + return 0; + // return of command for (almost) all commands switch(type) {