| 8 | namespace AetherSDR { |
| 9 | |
| 10 | QString encodeMemoryText(const QString& value) |
| 11 | { |
| 12 | // Strip NUL/control bytes first, then apply the protocol space-encoding so |
| 13 | // a hand-entered or imported value can never push a raw control byte (which |
| 14 | // breaks the radio and other SmartSDR-compatible software) onto the wire. |
| 15 | return MemoryFields::sanitizeText(value).replace(' ', QChar(0x7f)); |
| 16 | } |
| 17 | |
| 18 | MemoryEntry captureMemoryFromSlice(const RadioModel& model, |
| 19 | const SliceModel& slice, |
no test coverage detected