Rename Tunes::get_next_tune() to Tunes::get_next_note().

This commit is contained in:
mcsauder
2019-02-19 08:00:11 +01:00
committed by Beat Küng
parent 18f7ee2d50
commit a6d186dfed
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -147,10 +147,10 @@ void Tunes::set_string(const char *const string, uint8_t strength)
}
}
int Tunes::get_next_tune(unsigned &frequency, unsigned &duration,
int Tunes::get_next_note(unsigned &frequency, unsigned &duration,
unsigned &silence, uint8_t &strength)
{
int ret = get_next_tune(frequency, duration, silence);
int ret = get_next_note(frequency, duration, silence);
// Check if note should not be heard -> adjust strength to 0 to be safe.
if (frequency == 0 || duration == 0) {
@@ -163,7 +163,7 @@ int Tunes::get_next_tune(unsigned &frequency, unsigned &duration,
return ret;
}
int Tunes::get_next_tune(unsigned &frequency, unsigned &duration,
int Tunes::get_next_note(unsigned &frequency, unsigned &duration,
unsigned &silence)
{
// Return the values for frequency and duration if the custom msg was received.
+2 -2
View File
@@ -100,7 +100,7 @@ public:
* @param silence return silence duration (us)
* @return -1 for error, 0 for play one tone and 1 for continue a sequence
*/
int get_next_tune(unsigned &frequency, unsigned &duration, unsigned &silence);
int get_next_note(unsigned &frequency, unsigned &duration, unsigned &silence);
/**
* Get next note in the current tune, which has been provided by either
@@ -111,7 +111,7 @@ public:
* @param strength return the strength of the note (between 0-100)
* @return -1 for error, 0 for play one tone and 1 for continue a sequence
*/
int get_next_tune(unsigned &frequency, unsigned &duration,
int get_next_note(unsigned &frequency, unsigned &duration,
unsigned &silence, uint8_t &strength);
/**