kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warnings in jupiter.c
rodzic
bc94558fe3
commit
86660a0b97
|
@ -1135,6 +1135,11 @@ int tt538_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
|||
fresplen = 6;
|
||||
retval = tt538_transaction(rig, "?K" EOM, 3, frespbuf, &fresplen);
|
||||
|
||||
if (retval != RIG_OK)
|
||||
{
|
||||
return retval;
|
||||
}
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
fcmdbuf[i + 1] = frespbuf[i];
|
||||
|
@ -1173,6 +1178,11 @@ int tt538_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
|||
fresplen = 6;
|
||||
retval = tt538_transaction(rig, "?K" EOM, 3, frespbuf, &fresplen);
|
||||
|
||||
if (retval != RIG_OK)
|
||||
{
|
||||
return retval;
|
||||
}
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
fcmdbuf[i + 1] = frespbuf[i];
|
||||
|
@ -1195,6 +1205,11 @@ int tt538_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
|||
fresplen = 6;
|
||||
retval = tt538_transaction(rig, "?K" EOM, 3, frespbuf, &fresplen);
|
||||
|
||||
if (retval != RIG_OK)
|
||||
{
|
||||
return retval;
|
||||
}
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
{
|
||||
fcmdbuf[i + 1] = frespbuf[i];
|
||||
|
|
Ładowanie…
Reference in New Issue