Skip to content

Commit

Permalink
Revert FPP blanking change, clear buffer on config change
Browse files Browse the repository at this point in the history
  • Loading branch information
forkineye committed Oct 2, 2021
1 parent 013704b commit b99ef52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ESPixelStick/src/input/InputFPPRemote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ bool c_InputFPPRemote::SetConfig (JsonObject & jsonConfig)
}

// DEBUG_V ("Config Processing");
// Clear outbuffer on config change
memset (OutputMgr.GetBufferAddress(), 0x0, OutputMgr.GetBufferUsedSize ());
StartPlaying (FileToPlay);

// DEBUG_END;
Expand Down
6 changes: 3 additions & 3 deletions ESPixelStick/src/service/FPPDiscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ void c_FPPDiscovery::ProcessReceivedUdpPacket (AsyncUDPPacket UDPpacket)
case 0x03: //Blank packet
{
// DEBUG_V (String (F ("FPP Blank packet")));
StopPlaying ();
// ProcessBlankPacket ();
// StopPlaying ();
ProcessBlankPacket ();
break;
}

Expand Down Expand Up @@ -888,7 +888,7 @@ void c_FPPDiscovery::StopPlaying ()

// DEBUG_V ("");

ProcessBlankPacket ();
// ProcessBlankPacket ();

// DEBUG_END;

Expand Down

0 comments on commit b99ef52

Please sign in to comment.