diff options
author | Jiacheng Guo <gjc@google.com> | 2020-12-22 00:48:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 08:48:39 -0800 |
commit | fc0149c576996ba7352e5fe1a88549e38d994680 (patch) | |
tree | 2c9f0c529d6b4ec01187830a4b6f7b2f2fe72424 /src/dbus | |
parent | 07e971761549416aca17bc209ba5ed08806033a2 (diff) | |
download | ot-br-posix-fc0149c576996ba7352e5fe1a88549e38d994680.tar.gz |
[radio] pass full power map in command line args (#656)
This allows the powermap to be dynamically reloaded when user sets the
region. Also fixes the reset behavior of the region code.
Diffstat (limited to 'src/dbus')
-rw-r--r-- | src/dbus/server/dbus_thread_object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/server/dbus_thread_object.cpp b/src/dbus/server/dbus_thread_object.cpp index 88e7f6b7..aa93db62 100644 --- a/src/dbus/server/dbus_thread_object.cpp +++ b/src/dbus/server/dbus_thread_object.cpp @@ -501,7 +501,7 @@ otError DBusThreadObject::SetRegionHandler(DBusMessageIter &aIter) otError error = OT_ERROR_NONE; VerifyOrExit(DBusMessageExtractFromVariant(&aIter, regionCode) == OTBR_ERROR_NONE, error = OT_ERROR_INVALID_ARGS); - mNcp->SetRegionCode(regionCode); + error = mNcp->SetRegionCode(regionCode); exit: return error; |