mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 20:35:17 +03:00
Minor misc. fixes (#4729)
* [Simulator] Remove extraneous format value in microsTimer; Better way to delete SimulatorStartupDialog (in case no event loop starts). * [Simulator] No helpers dependency for SimulatorStartupDialog. * [simpgmspace] Rename micros timer function and make externally available. * [Companion] Fix possible uninitialized value in TreeModel (compiler warning). * [multi_arm] Fix minor compiler warning (MSVC: "unsafe mix of type 'uint8_t' and type 'bool' in operation"). * [lua] Fix compiler warning ("'data' may be used uninitialized in this function"). * [OpenTxSimulator] Fix analogs array range. * [Simulator] Auto-start simulator when SimulatorMainWindow is first shown (vs. before it was shown). * [Simulator] DebugOutput: prevent possible mutex deadlock on buffer overflow (force queued connection for Qt < 5.3). * [Companion] Display calibration data for Horus joysticks (MOUSE1/MOUSE2)
This commit is contained in:
parent
9c7c8244f4
commit
5dabe53af4
14 changed files with 35 additions and 27 deletions
|
@ -408,7 +408,7 @@ static int luaCrossfireTelemetryPop(lua_State * L)
|
|||
}
|
||||
}
|
||||
|
||||
uint8_t length, data;
|
||||
uint8_t length = 0, data = 0;
|
||||
if (luaInputTelemetryFifo->probe(length) && luaInputTelemetryFifo->size() >= uint32_t(length)) {
|
||||
// length value includes the length field
|
||||
luaInputTelemetryFifo->pop(length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue