Skip to content

Commit

Permalink
Fix sound config button. Fixes Issue #235 (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosepMaJAZ authored Jun 22, 2024
1 parent 78e7875 commit 49525fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sound/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ device_t *sound_card_getdevice(int card) {
}

int sound_card_has_config(int card) {
if (sound_cards[card] != NULL || !sound_cards[card]->device)
if (sound_cards[card] == NULL || sound_cards[card]->device == NULL)
return 0;
return sound_cards[card]->device->config ? 1 : 0;
}
Expand Down

0 comments on commit 49525fc

Please sign in to comment.