forked from Archive/PX4-Autopilot
astyle src/platforms/posix
This commit is contained in:
parent
ca60d2d15f
commit
501f866bf5
|
@ -187,7 +187,7 @@ GPSSIM::GPSSIM(const char *uart_path, bool fake_gps, bool enable_sat_info) :
|
|||
|
||||
/* create satellite info data object if requested */
|
||||
if (enable_sat_info) {
|
||||
_Sat_Info = new(GPS_Sat_Info);
|
||||
_Sat_Info = new (GPS_Sat_Info);
|
||||
_p_report_sat_info = &_Sat_Info->_data;
|
||||
memset(_p_report_sat_info, 0, sizeof(*_p_report_sat_info));
|
||||
}
|
||||
|
|
|
@ -144,7 +144,7 @@ int VCDevNode::open(device::file_t *handlep)
|
|||
|
||||
int VCDevNode::close(device::file_t *handlep)
|
||||
{
|
||||
delete(PrivData *)handlep->priv;
|
||||
delete (PrivData *)handlep->priv;
|
||||
handlep->priv = nullptr;
|
||||
VDev::close(handlep);
|
||||
|
||||
|
|
Loading…
Reference in New Issue