mirror of https://github.com/ArduPilot/ardupilot
4108f22304
The check for UART port pointer is not sufficient to know if the update() was possible or not. When MarvelmindHedge construction failed, the hedge pointer might be a nullptr and there are no checks to avoid nullptr dereference. The MarvelmindHedge structure had complex initialization but was done in a C style, with intermixed initialization functions. malloc() was changed to cleaner new operator. Given that the file already contained new operator calls it didn't make sense to have a mix. The files are cpp so C++ operators are used. |
||
---|---|---|
.. | ||
examples/AP_Marvelmind_test | ||
sitl | ||
AP_Beacon.cpp | ||
AP_Beacon.h | ||
AP_Beacon_Backend.cpp | ||
AP_Beacon_Backend.h | ||
AP_Beacon_Marvelmind.cpp | ||
AP_Beacon_Marvelmind.h | ||
AP_Beacon_Pozyx.cpp | ||
AP_Beacon_Pozyx.h | ||
AP_Beacon_SITL.cpp | ||
AP_Beacon_SITL.h |