mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Silenced compilation warnings.
This commit is contained in:
parent
62f1f5f776
commit
5598f7cc43
2
femon.c
2
femon.c
@ -196,7 +196,7 @@ cString cPluginFemon::SVDRPCommand(const char *Command, const char *Option, int
|
||||
{
|
||||
cDvbDevice *dev = dynamic_cast<cDvbDevice*>(cDevice::ActualDevice());
|
||||
if (*Option && isnumber(Option)) {
|
||||
cDvbDevice *dev2 = dynamic_cast<cDvbDevice*>(cDevice::GetDevice(strtol(Option, NULL, 10)));
|
||||
cDvbDevice *dev2 = dynamic_cast<cDvbDevice*>(cDevice::GetDevice(int(strtol(Option, NULL, 10))));
|
||||
if (dev2)
|
||||
dev = dev2;
|
||||
}
|
||||
|
@ -558,7 +558,7 @@ void cFemonOsd::Action(void)
|
||||
m_StrengthValid = (m_Strength >= 0);
|
||||
m_FrontendStatus = (fe_status_t)(m_StrengthValid ? (FE_HAS_LOCK | FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI | FE_HAS_SYNC) : 0);
|
||||
m_FrontendStatusValid = m_StrengthValid;
|
||||
m_Signal = m_Strength * 0xFFFF / 100;
|
||||
m_Signal = uint16_t(m_Strength * 0xFFFF / 100);
|
||||
m_SignalValid = m_StrengthValid;
|
||||
m_SNR = 0;
|
||||
m_SNRValid = false;
|
||||
@ -574,9 +574,9 @@ void cFemonOsd::Action(void)
|
||||
m_StrengthValid = (m_Strength >= 0);
|
||||
m_FrontendStatus = (fe_status_t)(m_StrengthValid ? (FE_HAS_LOCK | FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI | FE_HAS_SYNC) : 0);
|
||||
m_FrontendStatusValid = m_StrengthValid;
|
||||
m_Signal = m_Strength * 0xFFFF / 100;
|
||||
m_Signal = uint16_t(m_Strength * 0xFFFF / 100);
|
||||
m_SignalValid = m_StrengthValid;
|
||||
m_SNR = m_Quality * 0xFFFF / 100;
|
||||
m_SNR = uint16_t(m_Quality * 0xFFFF / 100);
|
||||
m_SNRValid = m_QualityValid;
|
||||
m_BER = 0;
|
||||
m_BERValid = false;
|
||||
|
@ -77,8 +77,8 @@ public:
|
||||
~cFemonSymbolCache();
|
||||
void Refresh();
|
||||
cBitmap& Get(eSymbols symbolP);
|
||||
int GetSpacing() { return yFactorM * DEFAULT_SPACING; }
|
||||
int GetRounding() { return yFactorM * DEFAULT_ROUNDING; }
|
||||
int GetSpacing() { return int(yFactorM * DEFAULT_SPACING); }
|
||||
int GetRounding() { return int(yFactorM * DEFAULT_ROUNDING); }
|
||||
};
|
||||
|
||||
extern cFemonSymbolCache femonSymbols;
|
||||
|
Loading…
Reference in New Issue
Block a user