Transceiver.cpp: use a define for the MAX_PACKET_LENGTH
No need to keep this value on stack. Change-Id: If9ffb03b9e7b642f45732ba5938977bca271f1c7
This commit is contained in:
parent
8fbbd656c7
commit
bd0efb0bea
|
@ -657,10 +657,10 @@ void Transceiver::reset()
|
|||
}
|
||||
|
||||
|
||||
#define MAX_PACKET_LENGTH 100
|
||||
|
||||
void Transceiver::driveControl(size_t chan)
|
||||
{
|
||||
int MAX_PACKET_LENGTH = 100;
|
||||
|
||||
// check control socket
|
||||
char buffer[MAX_PACKET_LENGTH];
|
||||
int msgLen = -1;
|
||||
|
|
Loading…
Reference in New Issue