Skip to content

Commit 7384f95

Browse files
Merge #56
56: examples: fix lsgpio flags output r=nastevens a=stefan-muc I guess an user want's to see the flags ;) Co-authored-by: stefan-muc <[email protected]>
2 parents 6d44537 + 53f5ec5 commit 7384f95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [Unreleased]
1010

11+
- Fix lsgpio example to output gpio line flags
12+
1113
## v0.5.0
1214

1315
- Update Tokio to 1.x. #[55]((https://github.com/rust-embedded/gpio-cdev/pull/55).

examples/lsgpio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn main() {
5353
flags.push("open-source");
5454
}
5555

56-
let usage = if flags.is_empty() {
56+
let usage = if !flags.is_empty() {
5757
format!("[{}]", flags.join(" "))
5858
} else {
5959
"".to_owned()

0 commit comments

Comments
 (0)