From 6261282a3e7a7f8f393a97095b5c8c30873f593b Mon Sep 17 00:00:00 2001 From: Andy Knitt Date: Tue, 3 Sep 2024 21:01:02 -0500 Subject: [PATCH] allow negative number when no id is found. allow front-end to differentiate (#971) --- plugins/simplestream/simplestream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/simplestream/simplestream.cc b/plugins/simplestream/simplestream.cc index bbdcb25b..460e9251 100644 --- a/plugins/simplestream/simplestream.cc +++ b/plugins/simplestream/simplestream.cc @@ -66,7 +66,7 @@ class Simple_Stream : public Plugin_Api { //Call local_call = *call; System *call_system = call->get_system(); uint32_t call_tgid = call->get_talkgroup(); - uint32_t call_src = call->get_current_source_id(); + int32_t call_src = call->get_current_source_id(); uint32_t call_freq = call->get_freq(); std::string call_short_name = call->get_short_name(); std::string call_src_tag = call_system->find_unit_tag(call_src); @@ -126,7 +126,7 @@ class Simple_Stream : public Plugin_Api { boost::system::error_code error; System *call_system = call->get_system(); uint32_t call_tgid = call->get_talkgroup(); - uint32_t call_src = call->get_current_source_id(); + int32_t call_src = call->get_current_source_id(); uint32_t call_freq = call->get_freq(); std::string call_short_name = call->get_short_name(); std::string call_src_tag = call_system->find_unit_tag(call_src);