MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / dropVfoPrefix

Function dropVfoPrefix

src/core/RigctlProtocol.cpp:26–30  ·  view source on GitHub ↗

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().

Source from the content-addressed store, hash-verified

24// TX slice themselves via findTxSlice() — so they strip the token rather than
25// resolving it through takeVfoPrefix()/sliceForVfo().
26static 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

Callers 3

processCommandMethod · 0.85
cmdSetSplitFreqMethod · 0.85
cmdSetSplitModeMethod · 0.85

Calls 2

isVfoNameFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected