Skip to content

Commit

Permalink
avoid doulble iniled
Browse files Browse the repository at this point in the history
  • Loading branch information
Yves BAZIN authored and Yves BAZIN committed Dec 11, 2024
1 parent 3b26d45 commit 7d7ecf7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/I2SClocklessVirtualLedDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,11 @@ Driver data (overall frames):\n - nb of frames displayed:%d\n - nb of fr

void initled(int *Pinsq, int clock_pin, int latch_pin)
{
if(driverInit)
{
setPins(Pinsq, clock_pin, latch_pin);
return;
}
ESP_LOGI(TAG, "Start driver");
driverInit = false;
isOffsetDisplay = false;
Expand Down

0 comments on commit 7d7ecf7

Please sign in to comment.