AP_Notify: remove non-required initialisation of variables

These objects are dynamically allocated, and we zero the memory
as we allocate them
This commit is contained in:
Peter Barker 2017-05-03 07:49:30 +10:00 committed by Randy Mackay
parent 49b8d8319c
commit 4adf8a83a6
2 changed files with 2 additions and 5 deletions

View File

@ -324,9 +324,6 @@ bool Display::init(void)
return true;
}
_mstartpos = 0; // ticker shift position
_movedelay = 4; // ticker delay before shifting after new message displayed
// initialise driver
for(uint8_t i=0; i<8 && _driver == nullptr; i++) {
if (! (I2C_BUS_PROBE_MASK & (1<<i))) {

View File

@ -34,8 +34,8 @@ private:
bool _healthy;
uint8_t _mstartpos;
uint8_t _movedelay;
uint8_t _mstartpos; // ticker shift position
uint8_t _movedelay; // ticker delay before shifting after new message displayed
uint8_t _screenpage;
// stop showing text in display after this many millis: