mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 15:04:18 +00:00
Remove the unneeded source from the JSON except for the start of the transmission.
This commit is contained in:
parent
8d941db7b1
commit
cf161dbd3d
10 changed files with 55 additions and 42 deletions
|
|
@ -1330,9 +1330,7 @@ void CYSFControl::writeJSONRF(nlohmann::json& json, const char* action)
|
|||
assert(action != NULL);
|
||||
|
||||
json["timestamp"] = CUtils::createTimestamp();
|
||||
|
||||
json["source"] = "rf";
|
||||
json["action"] = action;
|
||||
json["action"] = action;
|
||||
}
|
||||
|
||||
void CYSFControl::writeJSONRF(nlohmann::json& json, const char* action, const unsigned char* source, unsigned char dgid)
|
||||
|
|
@ -1354,9 +1352,7 @@ void CYSFControl::writeJSONNet(nlohmann::json& json, const char* action)
|
|||
assert(action != NULL);
|
||||
|
||||
json["timestamp"] = CUtils::createTimestamp();
|
||||
|
||||
json["source"] = "network";
|
||||
json["action"] = action;
|
||||
json["action"] = action;
|
||||
}
|
||||
|
||||
void CYSFControl::writeJSONNet(nlohmann::json& json, const char* action, const unsigned char* source, unsigned char dgid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue