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

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:09 +10:00
parent 260a8eaddc
commit b8eab36298
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ AP_ADC_ADS1115::AP_ADC_ADS1115()
, _gain(ADS1115_PGA_4P096)
, _channel_to_read(0)
{
_samples = new adc_report_s[_channels_number];
_samples = NEW_NOTHROW adc_report_s[_channels_number];
}
AP_ADC_ADS1115::~AP_ADC_ADS1115()