mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
libtunes: Add maximum update interval
This commit is contained in:
parent
8054bbb985
commit
26d2e69ecf
@ -42,6 +42,8 @@
|
||||
// TODO: find better way to include the number of tunes, maybe include them in the lib directly?
|
||||
#include <drivers/drv_tone_alarm.h>
|
||||
|
||||
#define TUNE_MAX_UPDATE_INTERVAL_US 330000
|
||||
|
||||
class Tunes
|
||||
{
|
||||
public:
|
||||
@ -89,6 +91,8 @@ public:
|
||||
|
||||
unsigned int get_default_tunes_size() {return _default_tunes_size;}
|
||||
|
||||
unsigned int get_maximum_update_interval() {return (unsigned int)TUNE_MAX_UPDATE_INTERVAL_US;}
|
||||
|
||||
private:
|
||||
static const char *_default_tunes[];
|
||||
static const uint8_t _note_tab[];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user