Skip to content

Commit 87fbd56

Browse files
committed
PlaybackComm: Fixed Comma Delim
1 parent 27cf6b9 commit 87fbd56

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

framework/src/PlaybackCommunicator.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ namespace PCOE {
6060
if (config.includes(DELIM_KEY)) {
6161
log.WriteLine(LOG_DEBUG, MODULE_NAME, "Setting delimiter");
6262

63-
if (config.at(DELIM_KEY)[0].compare("\\t") == 0) {
63+
if (config.at(DELIM_KEY).size() == 0) {
64+
// Comma
65+
delim = ',';
66+
} else if (config.at(DELIM_KEY)[0].compare("\\t") == 0) {
6467
delim = '\t';
65-
}
66-
else {
68+
} else {
6769
delim = config.at(DELIM_KEY)[0].c_str()[0];
6870
}
6971
}

0 commit comments

Comments
 (0)