-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External power control (PC13) is not set after power-on, only if enabling/disabling from model menu #446
Comments
Do you know what revision made regression and can you share your eeprom data because i can't reproduce? |
I'm actually on 3eab877 and use this cmake line:
|
... and I made a full EEPROM reset, but that didn't solve the problem. |
If the type of the ext. module is PPM, then the PC13 functions as expected. So, initializing the crsf-stuff the setting of this pin is missing. I tried to debug a bit, but could not localize the bug in a first attempt. |
This is called if started with 'PPM' as ext module:
This is called if started with 'CRSF'as ext module:
In 'extmoduleTimerStart' the PC13 pin should be set if the 'state' argument is 'true', but that never happens. |
Looks like the problem is here:
Removing the comments seems to fix it. The logic seems to be totally srewed. |
I remember this part, I was hoping to never touch it again 🙈 |
Looks like I having a problem with the EEProm. |
Auto save is disabled when usb is connected - maybe this? This is standard OpenTX logic, but i don't know the reason behind it, maybe needs to be changed. |
No USB used in my tests |
Can you reproduce that with my cmake? |
I will take a look and try to solve module power in next few days |
I added further debug messages, but this part looks like a total mess. I'm not able to get through ... It's difficult to debug because |
No I get |
Whole part needs porting current opentx/edgetx solution or investigation if ppm setup is done correctly |
Better to remove all the external PPM stuff. Who is using that anymore? |
And out of sudden someone just asked about PPM on discord... |
It would be very cool, if you could donate some time on that topic. |
I haven't tested that yet, but it seems that |
I really hope you'll get through that mess ... |
I found it but it needs mayor refactorization of this true mess. |
Great!!! |
No description provided.
The text was updated successfully, but these errors were encountered: