1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Fix spelling

This commit is contained in:
Petr Ledvina 2017-05-22 14:48:29 +02:00
parent 919f0caa6b
commit 9c40903713

View file

@ -39,7 +39,7 @@
static const struct serialPortVTable tcpVTable; // Forward static const struct serialPortVTable tcpVTable; // Forward
static tcpPort_t tcpSerialPorts[SERIAL_PORT_COUNT]; static tcpPort_t tcpSerialPorts[SERIAL_PORT_COUNT];
static bool tcpPortInited[SERIAL_PORT_COUNT]; static bool tcpPortInitialized[SERIAL_PORT_COUNT];
static bool tcpStart = false; static bool tcpStart = false;
bool tcpIsStart(void) { bool tcpIsStart(void) {
return tcpStart; return tcpStart;
@ -76,8 +76,8 @@ static void onAccept(dyad_Event *e) {
} }
static tcpPort_t* tcpReconfigure(tcpPort_t *s, int id) static tcpPort_t* tcpReconfigure(tcpPort_t *s, int id)
{ {
if(tcpPortInited[id]) { if(tcpPortInitialized[id]) {
fprintf(stderr, "port is already initialed!\n"); fprintf(stderr, "port is already initialized!\n");
return s; return s;
} }
@ -93,7 +93,7 @@ static tcpPort_t* tcpReconfigure(tcpPort_t *s, int id)
} }
tcpStart = true; tcpStart = true;
tcpPortInited[id] = true; tcpPortInitialized[id] = true;
s->connected = false; s->connected = false;
s->clientCount = 0; s->clientCount = 0;