1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-25 09:15:42 +03:00

timing methods extracted to separate classes

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-01-18 15:54:45 +01:00
parent fc11eca5c0
commit d1fcb81017
26 changed files with 262 additions and 219 deletions

View file

@ -142,10 +142,10 @@ TABS.modes.initialize = function (callback) {
update_ui();
// enable data pulling
GUI.interval_add('aux_data_pull', get_rc_data, 50);
helper.interval.add('aux_data_pull', get_rc_data, 50);
// status data pulled via separate timer with static speed
GUI.interval_add('status_pull', function status_pull() {
helper.interval.add('status_pull', function status_pull() {
MSP.send_message(MSPCodes.MSP_STATUS);
if (semver.gte(CONFIG.flightControllerVersion, "1.5.0")) {