Skip to content

Commit

Permalink
Merge pull request #73 from jandryuk/closedir-fix
Browse files Browse the repository at this point in the history
xcpmd: Fix double closedir()
  • Loading branch information
crogers1 authored Oct 4, 2022
2 parents d949b71 + 5516255 commit 7332959
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion xcpmd/src/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ int update_battery_status(unsigned int battery_index) {
status.remaining_capacity = status.energy_now;
}

closedir(battery_dir);
memcpy(&last_status[battery_index], &status, sizeof(struct battery_status));
#ifdef XCPMD_DEBUG
print_battery_status(battery_index);
Expand Down

0 comments on commit 7332959

Please sign in to comment.