Skip to content

Commit f3c453b

Browse files
add weak implementation to fix compilation errors for other projects
1 parent cfe4cc5 commit f3c453b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ml_arp.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,10 @@ uint32_t Arp_GetPos(void)
288288
return arp_pos;
289289
}
290290

291+
/* please implement the following functions in your application */
292+
__attribute__((weak)) void Arp_Cb_NoteOn(uint8_t ch, uint8_t note, float vel) {};
293+
__attribute__((weak)) void Arp_Cb_NoteOff(uint8_t ch, uint8_t note) {};
294+
__attribute__((weak)) void Arp_Status_ValueChangedInt(const char *msg, int value) {};
295+
__attribute__((weak)) void Arp_Status_LogMessage(const char *msg) {};
296+
__attribute__((weak)) void Arp_Status_ValueChangedFloat(const char *msg, float value) {};
297+
__attribute__((weak)) void Arp_Cb_Step(uint8_t step) {};

0 commit comments

Comments
 (0)