Skip to content

Commit

Permalink
AP_Notify: remove non-required initialisation of variables
Browse files Browse the repository at this point in the history
These objects are dynamically allocated, and we zero the memory
as we allocate them
  • Loading branch information
peterbarker authored and rmackay9 committed May 8, 2017
1 parent ec37d86 commit 57c0551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions libraries/AP_Notify/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_Notify/Display.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class Display: public NotifyDevice {

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:
Expand Down

0 comments on commit 57c0551

Please sign in to comment.