Skip to content

Commit c51ca44

Browse files
committed
fix: add missing newline to gpio-switch state output
Signed-off-by: Fabian Wienand <fabian.wienand@blindspot.software>
1 parent ae64b0f commit c51ca44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/module/gpio/gpio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (s *Switch) Run(_ context.Context, sesh module.Session, args ...string) err
276276
log.Println("gpio.Switch module: Run called")
277277

278278
if len(args) == 0 {
279-
sesh.Print(fmt.Sprintf("Current state: %s", s.state))
279+
sesh.Printf("Current state: %s\n", s.state)
280280

281281
return nil
282282
}

0 commit comments

Comments
 (0)