Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix p25 parse #806

Merged
merged 14 commits into from
May 7, 2023
Prev Previous commit
Next Next commit
fix count
robotastic committed May 7, 2023

Unverified

The committer email address is not verified.
commit 6b13899ebc2cf7ae7ef1fdd20373352d6bc49774
8 changes: 5 additions & 3 deletions trunk-recorder/main.cc
Original file line number Diff line number Diff line change
@@ -1471,12 +1471,13 @@ for (vector<System *>::iterator sys_it = systems.begin(); sys_it != systems.end(
System_impl *system = (System_impl *)*sys_it;

if ((system->get_system_type() == "p25") || (system->get_system_type() == "smartnet") ) {

while ((msg = system->get_msg_queue()->delete_head_nowait()) != 0) {
msg.reset();
msg = system->get_msg_queue()->delete_head_nowait()
while (msg != 0) {



system->set_message_count(sys->get_message_count() + 1);
system->set_message_count(system->get_message_count() + 1);

if (system->get_system_type() == "smartnet") {
trunk_messages = smartnet_parser->parse_message(msg->to_string(), system);
@@ -1494,6 +1495,7 @@ for (vector<System *>::iterator sys_it = systems.begin(); sys_it != systems.end(
}

msg.reset();
msg = system->get_msg_queue()->delete_head_nowait()
}
}
}