Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Jun 19, 2024
1 parent 8fc1f5f commit 8b923cb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/zapit/src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ uint16_t CFrontend::getSignalStrength(void) const

if (fop(ioctl, FE_GET_PROPERTY, &props) < 0 && errno != ERANGE)
{
printf("%s: DTV_STAT_SIGNAL_STRENGTH failed: %m\n", __FUNCTION__);
printf("%s: DTV_STAT_SIGNAL_STRENGTH failed\n", __FUNCTION__);
}
else
{
Expand All @@ -777,7 +777,7 @@ uint16_t CFrontend::getSignalStrength(void) const
#endif
// fallback to old DVB API
if (!strength && fop(ioctl, FE_READ_SIGNAL_STRENGTH, &strength) < 0 && errno != ERANGE)
printf("%s: FE_READ_SIGNAL_STRENGTH failed: %m\n", __FUNCTION__);
printf("%s: FE_READ_SIGNAL_STRENGTH failed\n", __FUNCTION__);

#if BOXMODEL_DREAMBOX_ALL
if
Expand Down Expand Up @@ -815,11 +815,9 @@ uint16_t CFrontend::getSignalNoiseRatio(void) const
max_value = 4200; //1600;
else if (info.type == FE_QAM) // DVB-C
max_value = 6200; //4200;
#ifdef SYS_DVBT2
else if (info.type == FE_OFDM) // DVB-T
max_value = 5000; //2900;
#endif
#endif

#if DVB_API_VERSION > 5 || DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR >= 10
dtv_property prop[1];
Expand All @@ -830,7 +828,7 @@ uint16_t CFrontend::getSignalNoiseRatio(void) const

if (fop(ioctl, FE_GET_PROPERTY, &props) < 0 && errno != ERANGE)
{
printf("%s DTV_STAT_CNR failed: %m\n", __FUNCTION__);
printf("%s: DTV_STAT_CNR failed\n", __FUNCTION__);
}
else
{
Expand All @@ -849,7 +847,7 @@ uint16_t CFrontend::getSignalNoiseRatio(void) const
#endif
// fallback to old DVB API
if (!snr && fop(ioctl, FE_READ_SNR, &snr) < 0 && errno != ERANGE)
printf("%s: FE_READ_SNR failed: %m\n", __FUNCTION__);
printf("%s: FE_READ_SNR failed\n", __FUNCTION__);

#if BOXMODEL_DREAMBOX_ALL
if
Expand Down

0 comments on commit 8b923cb

Please sign in to comment.