comments and some temp removal of other debug

This commit is contained in:
Troy
2024-03-25 08:27:12 -04:00
parent 5ff44755d8
commit b52773c1d3
2 changed files with 3 additions and 3 deletions

View File

@@ -34,9 +34,9 @@ class AutoPlaylistUsermod : public Usermod {
int lastchange = millis();
int last_beat_interval = millis();
int change_threshold = 50;
int change_threshold = 50; // arbitrary starting point.
int change_lockout = 1000; // never change below this numnber of millis. I think of this more like a debounce, but opinions may vary.
int change_lockout = 1000; // never change below this number of millis. I think of this more like a debounce, but opinions may vary.
int ideal_change_min = 10000; // ideally change patterns no less than this number of millis
int ideal_change_max = 20000; // ideally change patterns no more than this number of millis

View File

@@ -124,7 +124,7 @@ void Segment::allocLeds() {
} // softhack007 clean up buffer
}
if ((size > 0) && (!ledsrgb || size > ledsrgbSize)) { //softhack dont allocate zero bytes
USER_PRINTF("allocLeds (%d,%d to %d,%d), %u from %u\n", start, startY, stop, stopY, size, ledsrgb?ledsrgbSize:0);
// TroyHacks: FIXME reneable this later: USER_PRINTF("allocLeds (%d,%d to %d,%d), %u from %u\n", start, startY, stop, stopY, size, ledsrgb?ledsrgbSize:0);
if (ledsrgb) free(ledsrgb); // we need a bigger buffer, so free the old one first
ledsrgb = (CRGB*)calloc(size, 1);
ledsrgbSize = ledsrgb?size:0;