mirror of https://github.com/ArduPilot/ardupilot
AP_FETtecOneWire: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
parent
5756b9a3de
commit
4da9c245d1
|
@ -134,7 +134,7 @@ void AP_FETtecOneWire::init()
|
||||||
}
|
}
|
||||||
|
|
||||||
// we have a uart and the desired ESC combination id valid, allocate some memory:
|
// we have a uart and the desired ESC combination id valid, allocate some memory:
|
||||||
_escs = new ESC[_esc_count];
|
_escs = NEW_NOTHROW ESC[_esc_count];
|
||||||
if (_escs == nullptr) {
|
if (_escs == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue