@@ -61,7 +61,7 @@ bool RTDEClient::init()
61
61
return true ;
62
62
}
63
63
64
- static unsigned attempts = 0 ;
64
+ unsigned int attempts = 0 ;
65
65
while (attempts < MAX_INITIALIZE_ATTEMPTS)
66
66
{
67
67
setupCommunication ();
@@ -144,7 +144,7 @@ bool RTDEClient::negotiateProtocolVersion(const uint16_t protocol_version)
144
144
{
145
145
// Protocol version should always be 1 before starting negotiation
146
146
parser_.setProtocolVersion (1 );
147
- static unsigned num_retries = 0 ;
147
+ unsigned int num_retries = 0 ;
148
148
uint8_t buffer[4096 ];
149
149
size_t size;
150
150
size_t written;
@@ -190,7 +190,7 @@ bool RTDEClient::negotiateProtocolVersion(const uint16_t protocol_version)
190
190
191
191
void RTDEClient::queryURControlVersion ()
192
192
{
193
- static unsigned num_retries = 0 ;
193
+ unsigned int num_retries = 0 ;
194
194
uint8_t buffer[4096 ];
195
195
size_t size;
196
196
size_t written;
@@ -236,7 +236,7 @@ void RTDEClient::queryURControlVersion()
236
236
237
237
void RTDEClient::setupOutputs (const uint16_t protocol_version)
238
238
{
239
- static unsigned num_retries = 0 ;
239
+ unsigned int num_retries = 0 ;
240
240
size_t size;
241
241
size_t written;
242
242
uint8_t buffer[4096 ];
@@ -316,7 +316,7 @@ void RTDEClient::setupOutputs(const uint16_t protocol_version)
316
316
317
317
void RTDEClient::setupInputs ()
318
318
{
319
- static unsigned num_retries = 0 ;
319
+ unsigned int num_retries = 0 ;
320
320
size_t size;
321
321
size_t written;
322
322
uint8_t buffer[4096 ];
@@ -487,7 +487,7 @@ bool RTDEClient::sendStart()
487
487
}
488
488
489
489
std::unique_ptr<RTDEPackage> package;
490
- static unsigned num_retries = 0 ;
490
+ unsigned int num_retries = 0 ;
491
491
while (num_retries < MAX_REQUEST_RETRIES)
492
492
{
493
493
if (!pipeline_.getLatestProduct (package, std::chrono::milliseconds (1000 )))
0 commit comments