Skip to content

Commit

Permalink
revert(chip): glob does work
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed May 13, 2024
1 parent 5cc878e commit bbfb228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: gpio
version: 1.1.1
version: 1.1.2

authors:
- Stephen von Takach <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/gpio/chip.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class GPIO::Chip
def self.all
Dir.entries("/dev/").select(&.starts_with?("gpio")).sort!.map { |path| new(Path.new("/dev", path)) }
Dir.glob("/dev/gpiochip*").sort!.map { |path| new(Path[path]) }
end

def initialize(path : Path)
Expand Down

0 comments on commit bbfb228

Please sign in to comment.