From 10fedd228915ec24122faf558d64a584291b0337 Mon Sep 17 00:00:00 2001 From: Ostroumov Anatolij Date: Mon, 6 Apr 2015 02:00:34 +0300 Subject: [PATCH] fix --- examples/gpiocli.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/gpiocli.go b/examples/gpiocli.go index 6d4ef1f..14d0ce9 100644 --- a/examples/gpiocli.go +++ b/examples/gpiocli.go @@ -48,7 +48,7 @@ func main() { pin := rpio.Pin(*pinNumber) pin.Input() // Input mode res := pin.Read() - + fmt.Printf("Raspberry PI GPIO status for pin #%d - %d\n", *pinNumber, pin.Read()) if *high { if res == rpio.High { os.Exit(0) @@ -62,7 +62,6 @@ func main() { os.Exit(1) } } - fmt.Printf("Raspberry PI GPIO status for pin #%d - %d\n", *pinNumber, pin.Read()) } else { switch *set { case 1: