mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Add metered connection and usability check (#4168)
* Add Metered connection and usability check * Add network speed to status bar * Add network type * Introduce network status * Rephrase option * Add network info to setup tab * Reserve statusbar for something else * Make sonar happy
This commit is contained in:
parent
4e553d9607
commit
5ef26ae89e
11 changed files with 133 additions and 14 deletions
|
@ -25,6 +25,7 @@ import BuildApi from "./BuildApi";
|
|||
|
||||
import { serialShim } from "./serial_shim.js";
|
||||
import { EventBus } from "../components/eventBus";
|
||||
import { ispConnected } from "./utils/connection";
|
||||
|
||||
let serial = serialShim();
|
||||
|
||||
|
@ -463,7 +464,7 @@ function checkReportProblems() {
|
|||
|
||||
if (needsProblemReportingDialog) {
|
||||
|
||||
problems.map((problem) => {
|
||||
problems.forEach((problem) => {
|
||||
problemItemTemplate.clone().html(problem.description).appendTo(problemDialogList);
|
||||
});
|
||||
|
||||
|
@ -491,7 +492,7 @@ async function processBuildOptions() {
|
|||
|
||||
// firmware 1_45 or higher is required to support cloud build options
|
||||
// firmware 1_46 or higher retrieves build options from the flight controller
|
||||
if (supported && FC.CONFIG.buildKey.length === 32 && navigator.onLine) {
|
||||
if (supported && FC.CONFIG.buildKey.length === 32 && ispConnected()) {
|
||||
const buildApi = new BuildApi();
|
||||
|
||||
function onLoadCloudBuild(options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue