AP_Notify: minor formatting and comment changes

No functional change
This commit is contained in:
Randy Mackay 2017-01-20 14:51:04 +09:00 committed by Lucas De Marchi
parent d12e0d6a82
commit 682fc759f1
2 changed files with 7 additions and 6 deletions

View File

@ -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:
void send_text(const char *str);
const char* get_text() const { return _send_text; }
private:
static NotifyDevice* _devices[];
static const struct AP_Param::GroupInfo var_info[];
private:
// 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[];
};

View File

@ -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) {