Skip to content

Commit

Permalink
cannot count CCDs when LibSensors was not found
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Sep 1, 2024
1 parent 195abc3 commit 333bc6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions linux/LibSensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ static int tempDriverPriority(const sensors_chip_name* chip) {
}

int LibSensors_countCCDs(void) {

#ifndef BUILD_STATIC
if (!dlopenHandle)
return 0;
#endif /* !BUILD_STATIC */

int ccds = 0;

int n = 0;
Expand Down

0 comments on commit 333bc6d

Please sign in to comment.