- fix Togglestereo so it works for the right device

This commit is contained in:
2024-08-06 19:37:06 +02:00
parent 508e42b04b
commit efda5360a2
2 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ void fm_task(){
} }
//debugg functions //debugg functions
void toggleStereo(){ void toggleStereo(int device){
isStereo = !isStereo; isStereo = !isStereo;
KT0803_setMono(&kt0803, isStereo); KT0803_setMono(&kt0803[device], isStereo);
} }

View File

@@ -3,5 +3,5 @@ void fm_task(void);
bool catch_radio(int device); bool catch_radio(int device);
// debug functions // debug functions
void toggleStereo(void); void toggleStereo(int device);