Browse Source

Fixed missing info in printf

master
Tim Schuster 2 years ago
parent
commit
694e539c6a
Signed by: Tim Schuster <mail@timschuster.info> GPG Key ID: F9E27097EFB77F61
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      example/main.go

+ 1
- 1
example/main.go View File

@@ -38,7 +38,7 @@ func main() {
38 38
 	}
39 39
 
40 40
 	for k := range servos {
41
-		fmt.Printf("Servo [%d]: Current Angle: %d °\n", servos[k].CurrentAngle())
41
+		fmt.Printf("Servo [%d]: Current Angle: %d °\n", k, servos[k].CurrentAngle())
42 42
 	}
43 43
 
44 44
 	defer func() {

Loading…
Cancel
Save