libtunes: Add maximum update interval

This commit is contained in:
Simone Guscetti 2017-05-30 14:36:00 +02:00 committed by Daniel Agar
parent 8054bbb985
commit 26d2e69ecf

View File

@ -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[];