mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
Fix PPM input initialization
This commit is contained in:
parent
e8a4016134
commit
160f240ea0
1 changed files with 2 additions and 2 deletions
|
@ -344,7 +344,7 @@ void pwmInConfig(const timerHardware_t *timerHardwarePtr, uint8_t channel)
|
|||
{
|
||||
pwmInputPort_t *self = &pwmInputPorts[channel];
|
||||
|
||||
TCH_t * tch = timerGetTCH(timerHardware);
|
||||
TCH_t * tch = timerGetTCH(timerHardwarePtr);
|
||||
if (tch == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ void pwmInConfig(const timerHardware_t *timerHardwarePtr, uint8_t channel)
|
|||
|
||||
void ppmInConfig(const timerHardware_t *timerHardwarePtr)
|
||||
{
|
||||
TCH_t * tch = timerGetTCH(timerHardware);
|
||||
TCH_t * tch = timerGetTCH(timerHardwarePtr);
|
||||
if (tch == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue