Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Reject invalid Y data and disable debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola 'teknico' Larosa committed Jan 20, 2023
1 parent a9348a1 commit bfc3234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ls_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ values enable more and more debugging output. Typically, level 0 is used for thi
currently debugging. After debugging something, either remove them or move them to higher levels.
**************************************************************************************************/

#define DEBUG_ENABLED
// #define DEBUG_ENABLED

#ifdef DEBUG_ENABLED

Expand Down
2 changes: 1 addition & 1 deletion ls_handleTouches.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ boolean handleXYZupdate() {

// if Y-axis movements are enabled and it's a candidate for
// X/Y expression based on the MIDI mode and the currently held down cells
if (Split[sensorSplit].sendY) {
if (valueY != INVALID_DATA && Split[sensorSplit].sendY) {
if (hasYExpressiveNotes()) {
preSendTimbre(sensorSplit, valueY, sensorCell->note, sensorCell->channel);
}
Expand Down

0 comments on commit bfc3234

Please sign in to comment.