Repository: incubator-mynewt-newt Updated Branches: refs/heads/develop 761cdc25d -> 7ecee8b5c
There are two issues here: 1. newtmgr tool always includes an extraneous rc:0 key-value pair in its outgoing datetime commands. 2. Server-side, the firmware parses the "rc" value and writes the result to null. This commit addresses the first issue: Remove the rc entry from the datetime request. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/7ecee8b5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/7ecee8b5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/7ecee8b5 Branch: refs/heads/develop Commit: 7ecee8b5c805fe315f25ad163b89f9b7c74c3aae Parents: 761cdc2 Author: Christopher Collins <ccoll...@apache.org> Authored: Sat Mar 4 14:27:45 2017 -0800 Committer: Christopher Collins <ccoll...@apache.org> Committed: Sat Mar 4 14:27:45 2017 -0800 ---------------------------------------------------------------------- newtmgr/protocol/datetime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/7ecee8b5/newtmgr/protocol/datetime.go ---------------------------------------------------------------------- diff --git a/newtmgr/protocol/datetime.go b/newtmgr/protocol/datetime.go index 451b84a..3f213f6 100644 --- a/newtmgr/protocol/datetime.go +++ b/newtmgr/protocol/datetime.go @@ -28,7 +28,7 @@ import ( type DateTime struct { DateTime string `codec:"datetime"` - Return uint64 `codec:"rc"` + Return uint64 `codec:"rc,omitempty"` } func NewDateTime() (*DateTime, error) {