File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ extern "C" {
3232//#define TRACE_VCP
3333
3434// Enable periodic status print
35- //#define PERIODIC_STATUS
35+ #define PERIODIC_STATUS
36+ // Interval in ms for the periodic status print
37+ #define PERIODIC_STATUS_INT 30000
3638
3739// Report buffer space in 16-byte blocks instead of LDUs
3840#define STATUS_SPACE_BLOCKS
Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ extern "C" {
4444/* Interval between sending RRs in idle mode */
4545#define RR_INTERVAL 5000
4646
47- /* Periodic Status Report Interval */
48- #define STATUS_INTERVAL 30000
49-
5047#define FRAME_SPACING 2
5148
5249/* Macros for getting high/low bits of 16 bit numbers */
Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ void HdlcCallback()
8888 }
8989
9090 // Periodic status print
91- if (HAL_GetTick () - lastStatus > STATUS_INTERVAL )
91+ #ifdef PERIODIC_STATUS
92+ if (HAL_GetTick () - lastStatus > PERIODIC_STATUS_INT )
9293 {
9394 lastStatus = HAL_GetTick ();
94- #ifdef PERIODIC_STATUS
9595 uint32_t errFrames = rxTotalFrames - rxValidFrames ;
9696 if (HDLCPeerConnected )
9797 {
@@ -108,8 +108,8 @@ void HdlcCallback()
108108 log_warn ("HDLC frame sync lost" );
109109 VCPWriteDebug1 ("HDLC frame sync lost" );
110110 }
111- #endif
112111 }
112+ #endif
113113}
114114
115115void hdlcFrameSpace ()
You can’t perform that action at this time.
0 commit comments