init frsky_state properly

This commit is contained in:
Mark Whitehorn
2016-02-29 17:42:15 -07:00
committed by Lorenz Meier
parent ab596e3711
commit bebe8b0a78
@@ -194,6 +194,7 @@ static int frsky_telemetry_thread_main(int argc, char *argv[])
/* Main thread loop */
char sbuf[20];
frsky_state = IDLE;
while (frsky_state == IDLE) {
/* 2 byte polling frames indicate SmartPort telemetry