Closed Gaai closed 1 year ago
Not at all critical but might aswell replace typo in headphone_detect.h:
#ifndef _AUDIO_HEADPHONE_DETEC_H_
#define _AUDIO_HEADPHONE_DETEC_H_
With:
#ifndef _AUDIO_HEADPHONE_DETECT_H_
#define _AUDIO_HEADPHONE_DETECT_H_
I've noticed a few hardcoded numbers/assumptions, I suggest make a PR to get attention on the issue. If there's a problem with it then it can be figured out there
@Gaai Thank you for your report, let we fix it.
I think this
0
should either be replaced by macroHEADPHONE_DETECT
, orget_headphone_detect_gpio()
which returns this macro value?? Another possibillity is using(int)pvTimerGetTimerID(xTimer)
like it's done instatic void hp_timer_cb(TimerHandle_t xTimer)
. Although that seems convoluted if there is a MACRO declared already that is indirectly used anyway.Also I noticed:
Which I think should be:
Let me know if I should create a pull request.