Drop a leading VFO token if present. Used by the split setters, which take a VFO prefix in chk_vfo=1 mode (e.g. "set_split_freq VFOB ") but resolve the TX slice themselves via findTxSlice() — so they strip the token rather than resolving it through takeVfoPrefix()/sliceForVfo().
| 24 | // TX slice themselves via findTxSlice() — so they strip the token rather than |
| 25 | // resolving it through takeVfoPrefix()/sliceForVfo(). |
| 26 | static void dropVfoPrefix(QStringList& parts) |
| 27 | { |
| 28 | if (!parts.isEmpty() && isVfoName(parts.first())) |
| 29 | parts.removeFirst(); |
| 30 | } |
| 31 | |
| 32 | // Existing level bits (kept as-is for compatibility — bit 13 is MICGAIN in |
| 33 | // standard Hamlib 4.x but has always been advertised as RFPOWER here; string |
no test coverage detected