This commit is contained in:
KubaPro010 2023-10-14 19:38:15 +02:00
parent 0c4ede7fea
commit 6bb99d67a9
2 changed files with 3 additions and 3 deletions

View File

@ -146,4 +146,4 @@ int close_control_pipe() {
if(f_ctl) fclose(f_ctl);
if(fd) return close(fd);
else return 0;
}
}

View File

@ -57,8 +57,8 @@ static void
terminate(int num)
{
delete fmmod;
pad_reg[GPIO_PAD_0_27] = 0x5a000018 + 7; //Set original power, just in case
pad_reg[GPIO_PAD_28_45] = 0x5a000018 + 7;
pad_reg[GPIO_PAD_0_27] = 0x5a000018 + 1; //Set original power, just in case
pad_reg[GPIO_PAD_28_45] = 0x5a000018 + 1;
fm_mpx_close();
close_control_pipe();
exit(num);