| 1252 | |
| 1253 | |
| 1254 | static int netrigctl_set_rptr_shift(RIG *rig, vfo_t vfo, |
| 1255 | rptr_shift_t rptr_shift) |
| 1256 | { |
| 1257 | int ret; |
| 1258 | char cmd[CMD_MAX]; |
| 1259 | char buf[BUF_MAX]; |
| 1260 | char vfostr[16] = ""; |
| 1261 | |
| 1262 | rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); |
| 1263 | |
| 1264 | ret = netrigctl_vfostr(rig, vfostr, sizeof(vfostr), RIG_VFO_A); |
| 1265 | |
| 1266 | if (ret != RIG_OK) { return ret; } |
| 1267 | |
| 1268 | SNPRINTF(cmd, sizeof(cmd), "R%s %s\n", vfostr, rig_strptrshift(rptr_shift)); |
| 1269 | |
| 1270 | ret = netrigctl_transaction(rig, cmd, strlen(cmd), buf); |
| 1271 | |
| 1272 | if (ret > 0) |
| 1273 | { |
| 1274 | return -RIG_EPROTO; |
| 1275 | } |
| 1276 | else |
| 1277 | { |
| 1278 | return ret; |
| 1279 | } |
| 1280 | } |
| 1281 | |
| 1282 | |
| 1283 | static int netrigctl_get_rptr_shift(RIG *rig, vfo_t vfo, |
nothing calls this directly
no test coverage detected