Skip to content

Commit

Permalink
Update platformcapsdata.h
Browse files Browse the repository at this point in the history
  • Loading branch information
karuna2git authored Apr 4, 2024
1 parent 9c70ee5 commit f0879da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SystemServices/platformcaps/platformcapsdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ class PlatformCapsData {
resp->Error.Text = output;
}
}
#elif (THUNDER_VERSION == 2)
auto resp = dispatcher_->Invoke("", channelId, *message);
#else
#elif ((THUNDER_VERSION >= 4) && (THUNDER_VERSION_MINOR == 2))
Core::JSONRPC::Context context(channelId, message->Id.Value(), "");
auto resp = dispatcher_->Invoke(context, *message);
#else
auto resp = dispatcher_->Invoke("", channelId, *message);
#endif
if (resp->Error.IsSet()) {
std::cout << "Call failed: " << message->Designator.Value() << " error: " << resp->Error.Text.Value() << "\n";
Expand Down

0 comments on commit f0879da

Please sign in to comment.