kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warnings in cm108.c
rodzic
91678ef573
commit
910d799494
|
@ -246,9 +246,7 @@ int cm108_ptt_get(hamlib_port_t *p, ptt_t *pttx)
|
||||||
{
|
{
|
||||||
case RIG_PTT_CM108:
|
case RIG_PTT_CM108:
|
||||||
{
|
{
|
||||||
int status;
|
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
return status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -262,6 +260,8 @@ int cm108_ptt_get(hamlib_port_t *p, ptt_t *pttx)
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef XXREMOVEXX
|
||||||
|
// Not referenced anywhere
|
||||||
/**
|
/**
|
||||||
* \brief get Data Carrier Detect (squelch) from CM108 GPIO
|
* \brief get Data Carrier Detect (squelch) from CM108 GPIO
|
||||||
* \param p
|
* \param p
|
||||||
|
@ -281,9 +281,7 @@ int cm108_dcd_get(hamlib_port_t *p, dcd_t *dcdx)
|
||||||
{
|
{
|
||||||
case RIG_DCD_CM108:
|
case RIG_DCD_CM108:
|
||||||
{
|
{
|
||||||
int status;
|
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
return status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -296,5 +294,6 @@ int cm108_dcd_get(hamlib_port_t *p, dcd_t *dcdx)
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
Ładowanie…
Reference in New Issue