Skip to content

Commit a8f5dc8

Browse files
Add more status message formats
1 parent e104d8b commit a8f5dc8

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ML_SynthTools",
3-
"version": "2.0.9",
3+
"version": "2.0.10",
44
"keywords": "ML_SynthTools, Synthesizer, Filter, Audio, ESP32, ESP32S2, ESP32S3, STM32, RP2040",
55
"description": "Synthesizer Tools; contains waveform generators etc.",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ML SynthTools
2-
version=2.0.9
2+
version=2.0.10
33
author=Marcel Licence <[email protected]>
44
maintainer=Marcel Licence <[email protected]>
55
sentence=Synthesizer Tools

src/ml_status_inline.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ void Status_ValueChangedInt(const char *group, const char *descr, int value)
122122
Serial.printf("%s - %s: %d\n", group, descr, value);
123123
}
124124

125+
void Status_ValueChangedIntArr(const char *descr, int value, int index)
126+
{
127+
status_cnt = STATUS_DISPLAY_TIME;
128+
Serial.printf("%s[%d]: %d\n", descr, index, value);
129+
}
130+
131+
void Status_ValueChangedIntArr(const char *group, const char *descr, int value, int index)
132+
{
133+
status_cnt = STATUS_DISPLAY_TIME;
134+
Serial.printf("%s - %s[%d]: %d\n", group, descr, index, value);
135+
}
136+
125137
void Status_ValueChangedStr(const char *descr, const char *value)
126138
{
127139
status_cnt = STATUS_DISPLAY_TIME;
@@ -145,7 +157,7 @@ void Status_Loop(uint32_t elapsed_time)
145157
status_elapsed_time += elapsed_time;
146158
}
147159

148-
void Status_LoopMain()
160+
void Status_LoopMain(void)
149161
{
150162
if (status_cnt > 0)
151163
{

0 commit comments

Comments
 (0)