-
Notifications
You must be signed in to change notification settings - Fork 81
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
Crash on DIY E28 dual board when diversity is disabled. #245
Comments
It works in branch v1.3 |
I ran a git bisect. It took about 8 steps.
lua/mLRS.lua | 9 ++++- |
On E28 Dual, if I set to Antenna1 to end up in a crash state, then comment out the sx2.UpdateRfPower line here and flash things seem to work: 1ebfbc6#diff-d442ec9fc39334fee02e97533bc34e173409b31ffbd4f4e056bfd97b76cbb18cR50-R51 Some extra logic needed here? |
good catch something like this https://github.com/olliw42/mLRS/blob/main/mLRS/CommonTx/mlrs-tx.cpp#L720-L721 or this https://github.com/olliw42/mLRS/blob/main/mLRS/CommonTx/mlrs-tx.cpp#L860-L861 (don't know from scratch which) (it's not clear to me from scratch why it's not needed here https://github.com/olliw42/mLRS/blob/main/mLRS/CommonTx/mlrs-tx.cpp#L848-L849) |
it appears that's again one of the strange things. Tried to reproduce on my dualE28 diy receiver, and it didn't gave issues... anyway, here is a branch with a suggested change: https://github.com/olliw42/mLRS/tree/owpr-rfpower-antenna pl check it out if it removes the issue for you |
Ah, perhaps one difference - Brad and I were testing the E28 Dual board as a Tx, not a receiver. My test with that fork:
|
shouldn't this be a bug which should have existed before, and also should exist then for the rx side? maybe the latter, i.e. what happens with a rx, could be tested too |
I only have one of these and I was only using it on the Tx side. In addition, I only saw the crash when the Tx was actually installed in a radio handset. Powering up the Tx without Jr pin 5 connected did not crash. Do we understand why it matters if Jr pin 5 is connected? |
that's indeed a very good question. I guess we would want to. :) |
Would think it has something to do with channel data being read, does this trigger the update power function?
Just for completeness, this also appears to work on 1.3 Branch |
When I use mLRS-bw.lua to switch from diversity to antenna 1 or antenna 2 and power cycle, it seems to be crashing very quickly after power-up, leaving the red LED on solid. Changing other settings and power cycling seems fine. The SWUART debug port works fine in diversity mode and I see a "." printed every second, but when I power cycle after selecting antenna 1 or antenna 2, I'm not getting anything at all on the debug port, just the solid red LED. Note also that if I disconnect JRPIN5 it powers up OK and the red LED flashes as it should.
This issue does not appear when DEVICE_HAS_DIVERSITY is not defined.
The text was updated successfully, but these errors were encountered: