Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
SP8EBC committed Mar 25, 2023
1 parent fc63cb7 commit cd360f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/AprsWXData.cpp
Expand Up @@ -497,6 +497,11 @@ void AprsWXData::copy(const AprsWXData & source, const DataSourceConfig & config
// this will be set to true if this packet comes from IS and it was send by primary call
bool true_if_primary = false;

// hotfix before this method will be properly refactored
if (source.dataSource == WxDataSource::IS_PRIMARY) {
true_if_primary = true;
}

// if this packet comes from TCP/IP connection to IS check the source call
if (source.dataSource == WxDataSource::IS_PRIMARY ||
source.dataSource == WxDataSource::IS_SECONDARY ) {
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -339,7 +339,7 @@ int main(int argc, char **argv){
}

// setting the source of this wx packet, by default assume that it is primary
wxIsTemp.dataSource = WxDataSource::IS_PRIMARY;
//wxIsTemp.dataSource = WxDataSource::IS_PRIMARY;
}
else if (serialThread->isPacketValid()) {
serialRxPacket = serialThread->getPacket();
Expand Down

0 comments on commit cd360f9

Please sign in to comment.