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

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

commit 041045b60fe646dafae7f48695fe0285b85e1590
Author: Szymon Janc <[email protected]>
AuthorDate: Thu Oct 22 00:14:10 2026 +0200

    nmxact/mtech_lora: Print port number in invalid port error
    
    The invalid Lora port error printed the device address with a %d
    verb instead of the offending port number.
    
    Assisted-by: Claude:claude-opus-5-5
---
 nmxact/mtech_lora/mtech_lora_sesn.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nmxact/mtech_lora/mtech_lora_sesn.go 
b/nmxact/mtech_lora/mtech_lora_sesn.go
index 8fdff49..a87150e 100644
--- a/nmxact/mtech_lora/mtech_lora_sesn.go
+++ b/nmxact/mtech_lora/mtech_lora_sesn.go
@@ -71,7 +71,7 @@ func NewLoraSesn(cfg sesn.SesnCfg, lx *LoraXport) (*LoraSesn, 
error) {
        }
 
        if cfg.Lora.Port < 1 || cfg.Lora.Port > 223 {
-               return nil, fmt.Errorf("Invalid Lora Port %d\n", cfg.Lora.Addr)
+               return nil, fmt.Errorf("Invalid Lora Port %d\n", cfg.Lora.Port)
        }
        s := &LoraSesn{
                cfg:   cfg,

Reply via email to