AP_FETtecOneWire: use NEW_NOTHROW for new(std::nothrow)

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:10 +10:00
parent 5756b9a3de
commit 4da9c245d1
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ void AP_FETtecOneWire::init()
}
// 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) {
return;
}