You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2021/05/27 08:20:43 UTC

[mynewt-nimble] 16/31: Revert "mesh: Remove unsigned typing to returns in heartbeat"

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

naraj pushed a commit to branch revert-958-mesh_sync_march21
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 956e64219a4ede48ec7a4f1bdba0bfa619cefafe
Author: MichaƂ Narajowski <mi...@codecoup.pl>
AuthorDate: Thu May 27 10:20:19 2021 +0200

    Revert "mesh: Remove unsigned typing to returns in heartbeat"
    
    This reverts commit 5f60008a2b6d631410062ee6f3d1aca12a742256.
---
 nimble/host/mesh/src/heartbeat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/mesh/src/heartbeat.c b/nimble/host/mesh/src/heartbeat.c
index 09d6459..3ba7ae3 100644
--- a/nimble/host/mesh/src/heartbeat.c
+++ b/nimble/host/mesh/src/heartbeat.c
@@ -91,7 +91,7 @@ static int heartbeat_send(const struct bt_mesh_send_cb *cb, void *cb_data)
 	 * removed.
 	 */
 	if (!tx.sub || pub.dst == BT_MESH_ADDR_UNASSIGNED) {
-		return 0;
+		return 0U;
 	}
 
 	hb.init_ttl = pub.ttl;