You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/08/15 00:30:06 UTC

[mynewt-newtmgr] 01/03: nmxact - write BLE command should listen for ack.

This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git

commit f99d0877d12d9412007238a4f5ceaaeca8e9a77a
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Fri Aug 11 11:58:15 2017 -0700

    nmxact - write BLE command should listen for ack.
---
 nmxact/nmble/ble_act.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/nmxact/nmble/ble_act.go b/nmxact/nmble/ble_act.go
index 679be3c..0d80957 100644
--- a/nmxact/nmble/ble_act.go
+++ b/nmxact/nmble/ble_act.go
@@ -384,11 +384,9 @@ func write(x *BleXport, bl *Listener, r *BleWriteReq) error {
 				bl.Acked = true
 				if msg.Status != 0 {
 					return StatusError(MSG_OP_RSP, rspType, msg.Status)
-				} else {
-					return nil
 				}
 
-			case *BleDiscChrEvt:
+			case *BleWriteAckEvt:
 				switch msg.Status {
 				case 0:
 					return nil

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" <co...@mynewt.apache.org>.