mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2025-12-06 03:01:59 +01:00
Correctly parse incoming waveform status strings by searching for double-quotes
This commit is contained in:
parent
39680f6139
commit
070b3c7fab
|
|
@ -298,12 +298,12 @@ namespace CODEC2_GUI
|
|||
// did we find beginning quotes?
|
||||
if(start_pos < 0) return; // no -- return
|
||||
|
||||
/*int end_pos = status.LastIndexOf("\"");
|
||||
int end_pos = status.LastIndexOf("\"");
|
||||
// did we find ending quotes?
|
||||
if(end_pos == start_pos) return; // no -- return
|
||||
*/
|
||||
|
||||
start_pos += 1; // ignore beginning quotes
|
||||
string value = status.Substring(start_pos);
|
||||
string value = status.Substring(start_pos,end_pos - start_pos);
|
||||
|
||||
// handle the remapped spaces
|
||||
value = value.Replace("\u007f", " ");
|
||||
|
|
|
|||
Loading…
Reference in a new issue