Skip to content

Commit

Permalink
Merge pull request #394 from MartinMueller2003/main
Browse files Browse the repository at this point in the history
Fixed channel ID in the file player definition that caused an incorrect blank timer to get started.
  • Loading branch information
forkineye committed Oct 16, 2021
2 parents 9c35ad0 + cbfe200 commit 854ae20
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ESPixelStick/src/input/InputFPPRemote.cpp
Expand Up @@ -108,11 +108,12 @@ void c_InputFPPRemote::Process ()
// DEBUG_START;
if (!IsInputChannelActive)
{
// dont do anything if the channel is not active
// DEBUG_V ("dont do anything if the channel is not active");
StopPlaying ();
}
else if (PlayingFile ())
{
// DEBUG_V ("Local File Play");
pInputFPPRemotePlayItem->Poll (InputDataBuffer, InputDataBufferSize);

if (pInputFPPRemotePlayItem->IsIdle ())
Expand All @@ -123,6 +124,7 @@ void c_InputFPPRemote::Process ()
}
else
{
// DEBUG_V ();
FPPDiscovery.ReadNextFrame (InputDataBuffer, InputDataBufferSize);
}

Expand Down
1 change: 1 addition & 0 deletions ESPixelStick/src/input/InputFPPRemotePlayFileFsm.cpp
Expand Up @@ -254,6 +254,7 @@ void fsm_PlayFile_state_PlayingFile::Poll (uint8_t* Buffer, size_t BufferSize)
// DEBUG_V (String ("ChannelsPerFrame: ") + String (p_InputFPPRemotePlayFile->ChannelsPerFrame));
// DEBUG_V (String (" FilePosition: ") + String (FilePosition));
// DEBUG_V (String (" MaxBytesToRead: ") + String (MaxBytesToRead));
// DEBUG_V (String ("GetInputChannelId: ") + String (p_InputFPPRemotePlayFile->GetInputChannelId ()));

InputMgr.RestartBlankTimer (p_InputFPPRemotePlayFile->GetInputChannelId ());

Expand Down
1 change: 1 addition & 0 deletions ESPixelStick/src/input/InputMgr.cpp
Expand Up @@ -634,6 +634,7 @@ void c_InputMgr::Process ()

if (!BlankTimerHasExpired (CurrentInput->GetInputChannelId()))
{
// DEBUG_V (String ("Blank Timer is running: ") + String (CurrentInput->GetInputChannelId ()));
aBlankTimerIsRunning = true;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion ESPixelStick/src/service/FPPDiscovery.h
Expand Up @@ -50,7 +50,7 @@ class c_FPPDiscovery
bool IsEnabled = false;
String UploadFileName;
IPAddress FppRemoteIp = IPAddress (uint32_t(0));
c_InputFPPRemotePlayFile InputFPPRemotePlayFile = c_InputFPPRemotePlayFile (c_InputMgr::e_InputChannelIds::InputPrimaryChannelId);
c_InputFPPRemotePlayFile InputFPPRemotePlayFile = c_InputFPPRemotePlayFile (c_InputMgr::e_InputChannelIds::InputSecondaryChannelId);

void GetSysInfoJSON (JsonObject& jsonResponse);
void BuildFseqResponse (String fname, c_FileMgr::FileId fseq, String & resp);
Expand Down

0 comments on commit 854ae20

Please sign in to comment.