You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/03/06 21:17:21 UTC

[47/50] [abbrv] incubator-mynewt-newt git commit: There are two issues here:

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/master
Commit: 7ecee8b5c805fe315f25ad163b89f9b7c74c3aae
Parents: 761cdc2
Author: Christopher Collins <cc...@apache.org>
Authored: Sat Mar 4 14:27:45 2017 -0800
Committer: Christopher Collins <cc...@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) {