|
|
|
@ -1349,11 +1349,11 @@ void write_wave(int i, byte *buffer)
|
|
|
|
// Serial.printf("buffer is %d \n", buffer[ctr - 1]);
|
|
|
|
// Serial.printf("buffer is %d \n", buffer[ctr - 1]);
|
|
|
|
if (ctr > bufLen) {
|
|
|
|
if (ctr > bufLen) {
|
|
|
|
ctr = ctr - bufLen;
|
|
|
|
ctr = ctr - bufLen;
|
|
|
|
if (debug_mode) {
|
|
|
|
// if (debug_mode) {
|
|
|
|
Serial.print("\r");
|
|
|
|
Serial.print("ctr reset ");
|
|
|
|
Serial.print(" ");
|
|
|
|
// Serial.print(" ");
|
|
|
|
Serial.println(millis());
|
|
|
|
Serial.println(millis());
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Serial.printf(" b: %d ", buffer[ctr - 1]);
|
|
|
|
// Serial.printf(" b: %d ", buffer[ctr - 1]);
|
|
|
|
|
|
|
|
|
|
|
|
|