Skip to content

Fix calibration (issue #574)#582

Merged
hexfet merged 1 commit intoDeviationTX:masterfrom
hexfet:fix_calib
Jan 14, 2019
Merged

Fix calibration (issue #574)#582
hexfet merged 1 commit intoDeviationTX:masterfrom
hexfet:fix_calib

Conversation

@hexfet
Copy link
Copy Markdown
Contributor

@hexfet hexfet commented Jan 13, 2019

Run mixer calculations on timer after de-initializing protocol. Ensures channel data is updated for functions like calibration. Fixes #574 .

…es channel data is updated for functions like calibration.
Comment thread src/protocol/protocol.c
CLOCK_StopTimer();
if(Model.protocol != PROTOCOL_NONE && PROTOCOL_LOADED)
PROTO_Cmds(PROTOCMD_DEINIT);
CLOCK_StartMixer(); // run mixer on timer so channels are updated for things like calibration
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer putting the comments above the line, which is more common practice and also make the width of line small.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually prefer this way because it makes it more likely the comment will be preserved if the line is moved. But it isn't a strong rule

@hexfet hexfet merged commit 9d94dc5 into DeviationTX:master Jan 14, 2019
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.

4 participants