Skip to content

Conversation

@milindur
Copy link
Contributor

If the type of VTX is unknown, the power field (table) is not fully initialized. This results in an exception when unintentionally entering the power field.

This change disables power and pit fields, if the VTX device is unknown. Band and channel should remain functional, because the VTX could be connected to another device (PDB/OSD) (see betaflight/betaflight#6522).

@mikeller
Copy link
Member

@milindur: Do you think this will fix #162?

@milindur
Copy link
Contributor Author

@mikeller I don't think so. In my case I got the error "BF/ui.lua:235; attempt to perform arithmetic on field 'max'. #162 seems to be something else.

@mikeller mikeller merged commit 9fd9d53 into betaflight:master Aug 28, 2018
@milindur milindur deleted the unknown-vtx branch December 29, 2018 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants