Skip to content

Commit

Permalink
Merge pull request #58 from 916BGAI/dev
Browse files Browse the repository at this point in the history
remove usleep in powerkey init
  • Loading branch information
Neutree authored Nov 29, 2024
2 parents b121131 + 42679e1 commit 8dc8597
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/peripheral/port/maixcam/maix_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ namespace maix::peripheral::key

if (!fs::exists("/sys/class/gpio/gpio448")) {
system("echo 448 > /sys/class/gpio/export");
usleep(100000);
system("echo \"in\" > /sys/class/gpio/gpio448/direction");
system("echo \"falling\" > /sys/class/gpio/gpio448/edge");
log::info("export axp2101 irq gpio success");
Expand Down

0 comments on commit 8dc8597

Please sign in to comment.