ardupilot/libraries/AP_HAL
Murilo Belluzzo 75a1b102fb RingBuffer: Handle zero sized better
Sometimes (like in DataFlash) the size of the ring buffer will be
determined in run time and the object can have size zero until proper
initialization. When this was the case, an underflow in ::get_size would
mess with the initializing algorithm.

Another issue was that the 'new' operator could fail what was not being
handled. Now, we only set the size member after we are sure 'new'
successfully allocated memory.
2016-08-03 01:44:02 -03:00
..
examples AP_HAL: fixed and updated RCInput example. 2016-07-27 00:52:13 -03:00
utility RingBuffer: Handle zero sized better 2016-08-03 01:44:02 -03:00
AnalogIn.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
AP_HAL_Boards.h AP_HAL: remove macros to use MS5611 in the main thread 2016-07-30 00:55:28 -03:00
AP_HAL_Macros.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
AP_HAL_Main.h AP_HAL: remove support for main without argc 2016-05-23 21:49:45 -03:00
AP_HAL_Namespace.h AP_HAL: remove SPIDriver 2016-07-29 15:01:15 -03:00
AP_HAL.h AP_HAL: remove SPIDriver 2016-07-29 15:01:15 -03:00
Device.h AP_HAL_Linux: implement threaded I2C 2016-07-30 00:55:27 -03:00
GPIO.h AP_HAL: GPIO: remove unused functions 2016-06-21 12:16:32 -03:00
HAL.cpp AP_HAL: add run() method 2015-10-21 09:16:07 +11:00
HAL.h AP_HAL: remove SPIDriver 2016-07-29 15:01:15 -03:00
I2CDevice.h AP_HAL: update Device interface for periodic tasks 2016-07-30 00:55:27 -03:00
OpticalFlow.h AP_HAL: follow coding style 2015-12-18 17:56:03 +11:00
RCInput.h AP_HAL: fixed typo 2016-07-01 15:35:07 +10:00
RCOutput.h AP_HAL: defer calls to safety_state switch to queue an async attempt. 2016-05-27 21:34:40 +10:00
Scheduler.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
Semaphores.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
SPIDevice.h AP_HAL: update Device interface for periodic tasks 2016-07-30 00:55:27 -03:00
Storage.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
system.h Global: Rename printf format attribute 2015-12-01 07:22:12 +11:00
UARTDriver.cpp AP_HAL: remove unused in_progmem flag to print_vprintf 2015-12-27 15:58:12 -02:00
UARTDriver.h AP_HAL: fixed typo 2016-07-01 15:35:07 +10:00
Util.cpp AP_HAL: add support for get realtime on Darwin systems 2016-07-07 11:35:17 -03:00
Util.h AP_HAL: fixed typo 2016-07-01 15:35:07 +10:00