File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ bool commandAT(const char * commandString)
8787 case (' B' ): // ATB - Break the link
8888
8989 // Compute the time delay
90- delayMillis = (VC_LINK_BREAK_MULTIPLIER + 2 ) * settings.heartbeatTimeout ;
90+ delayMillis = (LINK_BREAK_MULTIPLIER + 2 ) * settings.heartbeatTimeout ;
9191
9292 // Warn the user of the delay
9393 systemPrint (" Delaying " );
@@ -111,7 +111,7 @@ bool commandAT(const char * commandString)
111111 // Idle the system to break the link
112112 // This is required on the server system which does not request an VC number assignment
113113 timer = millis ();
114- while ((millis () - timer) < ((VC_LINK_BREAK_MULTIPLIER + 2 ) * settings.heartbeatTimeout ))
114+ while ((millis () - timer) < ((LINK_BREAK_MULTIPLIER + 2 ) * settings.heartbeatTimeout ))
115115 petWDT ();
116116 changeState (RADIO_RESET);
117117
Original file line number Diff line number Diff line change @@ -963,7 +963,7 @@ void updateRadioState()
963963 // ----------
964964 // Always check for link timeout
965965 // ----------
966- if ((millis () - linkDownTimer) >= (P2P_LINK_BREAK_MULTIPLIER * settings.heartbeatTimeout ))
966+ if ((millis () - linkDownTimer) >= (LINK_BREAK_MULTIPLIER * settings.heartbeatTimeout ))
967967 // Break the link
968968 breakLink ();
969969 break ;
@@ -2461,7 +2461,7 @@ void updateRadioState()
24612461 // Determine if the link has timed out
24622462 vc = &virtualCircuitList[index];
24632463 if ((vc->vcState != VC_STATE_LINK_DOWN) && (serverLinkBroken
2464- || ((currentMillis - vc->lastTrafficMillis ) > (VC_LINK_BREAK_MULTIPLIER * settings.heartbeatTimeout ))))
2464+ || ((currentMillis - vc->lastTrafficMillis ) > (LINK_BREAK_MULTIPLIER * settings.heartbeatTimeout ))))
24652465 {
24662466 if (index == VC_SERVER)
24672467 {
Original file line number Diff line number Diff line change 6464#define VC_HB_CHANNEL (VC_HB_CHANNEL_TIMER + sizeof(uint16_t))
6565#define VC_HB_END (VC_HB_CHANNEL + sizeof(uint8_t))
6666
67- #define VC_LINK_BREAK_MULTIPLIER 3 //Number of missing HEARTBEAT timeouts
68-
6967//ASCII characters
7068#define START_OF_VC_SERIAL 0x02 //From ASCII table - Start of Text
7169
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ typedef enum
4343
4444RadioStates radioState = RADIO_RESET ;
4545
46- #define P2P_LINK_BREAK_MULTIPLIER 3
46+ #define LINK_BREAK_MULTIPLIER 3
4747
4848typedef struct _RADIO_STATE_ENTRY
4949{
You can’t perform that action at this time.
0 commit comments