Browse Source

AP_Notify: minor formatting and comment changes

No functional change
mission-4.1.18
Randy Mackay 8 years ago committed by Lucas De Marchi
parent
commit
682fc759f1
  1. 8
      libraries/AP_Notify/AP_Notify.h
  2. 3
      libraries/AP_Notify/Display.cpp

8
libraries/AP_Notify/AP_Notify.h

@ -117,8 +117,6 @@ public: @@ -117,8 +117,6 @@ public:
// handle a PLAY_TUNE message
static void handle_play_tune(mavlink_message_t* msg);
static const struct AP_Param::GroupInfo var_info[];
bool buzzer_enabled() const { return _buzzer_enable; }
@ -126,13 +124,17 @@ public: @@ -126,13 +124,17 @@ public:
void send_text(const char *str);
const char* get_text() const { return _send_text; }
static const struct AP_Param::GroupInfo var_info[];
private:
static NotifyDevice* _devices[];
// parameters
AP_Int8 _rgb_led_brightness;
AP_Int8 _rgb_led_override;
AP_Int8 _buzzer_enable;
AP_Int8 _display_type;
char _send_text[NOTIFY_TEXT_BUFFER_SIZE];
static NotifyDevice* _devices[];
};

3
libraries/AP_Notify/Display.cpp

@ -394,17 +394,16 @@ bool Display::init(void) @@ -394,17 +394,16 @@ bool Display::init(void)
void Display::update()
{
static uint8_t timer = 0;
// return immediately if not enabled
if (!_healthy) {
return;
}
// max update frequency 2Hz
static uint8_t timer = 0;
if (timer++ < 25) {
return;
}
timer = 0;
if (AP_Notify::flags.armed) {

Loading…
Cancel
Save