mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Fix spelling
This commit is contained in:
parent
919f0caa6b
commit
9c40903713
1 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@
|
|||
|
||||
static const struct serialPortVTable tcpVTable; // Forward
|
||||
static tcpPort_t tcpSerialPorts[SERIAL_PORT_COUNT];
|
||||
static bool tcpPortInited[SERIAL_PORT_COUNT];
|
||||
static bool tcpPortInitialized[SERIAL_PORT_COUNT];
|
||||
static bool tcpStart = false;
|
||||
bool tcpIsStart(void) {
|
||||
return tcpStart;
|
||||
|
@ -76,8 +76,8 @@ static void onAccept(dyad_Event *e) {
|
|||
}
|
||||
static tcpPort_t* tcpReconfigure(tcpPort_t *s, int id)
|
||||
{
|
||||
if(tcpPortInited[id]) {
|
||||
fprintf(stderr, "port is already initialed!\n");
|
||||
if(tcpPortInitialized[id]) {
|
||||
fprintf(stderr, "port is already initialized!\n");
|
||||
return s;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ static tcpPort_t* tcpReconfigure(tcpPort_t *s, int id)
|
|||
}
|
||||
|
||||
tcpStart = true;
|
||||
tcpPortInited[id] = true;
|
||||
tcpPortInitialized[id] = true;
|
||||
|
||||
s->connected = false;
|
||||
s->clientCount = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue