Unknown Error in code when i add delay #492
-
#include "AudioTools.h" BluetoothA2DPSink a2dp_sink; AudioKitStream kit; void setup() { // setup output // register callback void loop() { According to instructions i add delay in A2DP code.Then arduino show unknown error. Please tell me whats wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You pass a variable that was created on the stack to the effects. When the loop is executed this variable does not exist any more and bad things will happen! |
Beta Was this translation helpful? Give feedback.
You pass a variable that was created on the stack to the effects. When the loop is executed this variable does not exist any more and bad things will happen!
Define it either as global variable or via new on the heap...