Skip to content

Commit

Permalink
Try waking using fe2 instead of fe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Jun 25, 2024
1 parent b199d56 commit 207c0c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/axe.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ int axe_wakeup(adapter *_ad, int fe_fd, int voltage) {
ad = get_adapter(i);
if (ad == NULL || is_adapter_disabled(i))
continue;
LOG("axe_wakeup: waking adapter %d, fd %d", i, ad->fe);
if (ioctl(ad->fe, FE_SET_VOLTAGE, voltage) == -1)
LOG("axe_wakeup: FE_SET_VOLTAGE failed fd %d: %s", ad->fe,
LOG("axe_wakeup: waking adapter %d, fd %d", i, ad->fe2);
if (ioctl(ad->fe2, FE_SET_VOLTAGE, voltage) == -1)
LOG("axe_wakeup: FE_SET_VOLTAGE failed fd %d: %s", ad->fe2,
strerror(errno));
}
return 0;
Expand Down

0 comments on commit 207c0c5

Please sign in to comment.