Skip to content

Commit

Permalink
Avoid a div/0 situation, add fppinit/fppoled/fpp_postnetwork boot log…
Browse files Browse the repository at this point in the history
…s to crash report
  • Loading branch information
dkulp committed Oct 13, 2024
1 parent c9399e4 commit c1b60cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/fppd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ static void handleCrash(int s) {
if (crashLog > 1) {
strcat(zName, " settings");
if (crashLog > 2) {
strcat(zName, " config tmp logs/fppd.log logs/apache2-error.log playlists /etc/fppd");
system("journalctl -b -u fppinit -u fppoled -u fpp_postnetwork > tmp/boot.log");
strcat(zName, " config tmp logs/fppd.log logs/apache2-error.log playlists /etc/fpp");
}
}
system(zName);
Expand Down
6 changes: 5 additions & 1 deletion src/playlist/PlaylistEntrySequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ Json::Value PlaylistEntrySequence::GetMqttStatus(void) {
}

void PlaylistEntrySequence::Pause() {
m_pausedFrame = sequence->m_seqMSElapsed / sequence->GetSeqStepTime();
if (sequence->GetSeqStepTime() == 0) {
m_pausedFrame = 0;
} else {
m_pausedFrame = sequence->m_seqMSElapsed / sequence->GetSeqStepTime();
}
sequence->CloseSequenceFile();
sequence->SendBlankingData();
m_prepared = false;
Expand Down

0 comments on commit c1b60cd

Please sign in to comment.