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

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:15 +10:00
parent 65822c01ed
commit 30228f5e6e
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ void AP_Torqeedo::init()
break; break;
case ConnectionType::TYPE_TILLER: case ConnectionType::TYPE_TILLER:
case ConnectionType::TYPE_MOTOR: case ConnectionType::TYPE_MOTOR:
_backends[instance] = new AP_Torqeedo_TQBus(_params[instance], instance); _backends[instance] = NEW_NOTHROW AP_Torqeedo_TQBus(_params[instance], instance);
break; break;
} }
} }