From d149d539f9aba7f87d1af9c4ed70264028145dff Mon Sep 17 00:00:00 2001 From: Constantin Leue <77660791+Consti3D@users.noreply.github.com> Date: Fri, 7 Aug 2026 18:02:59 +0200 Subject: [PATCH] VS-Code auto correct bugs --- .../mock/mock_flight_controller_link.dart | 5 ++--- app/lib/transport/udp/udp_transport.dart | 14 +++++--------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/app/lib/transport/mock/mock_flight_controller_link.dart b/app/lib/transport/mock/mock_flight_controller_link.dart index 9e72019..978ba8e 100644 --- a/app/lib/transport/mock/mock_flight_controller_link.dart +++ b/app/lib/transport/mock/mock_flight_controller_link.dart @@ -20,11 +20,10 @@ import '../msp/msp_commands.dart'; class MockFlightControllerLink implements FlightControllerLink { MockFlightControllerLink({ List initialWaypoints = const [], - int batteryCellCount = 4, + this._batteryCellCount = 4, }) : _anchorLat = initialWaypoints.isEmpty ? 52.5 : initialWaypoints.first.lat, _anchorLon = initialWaypoints.isEmpty ? 13.4 : initialWaypoints.first.lon, - _activeWaypointIndex = initialWaypoints.isEmpty ? null : 0, - _batteryCellCount = batteryCellCount; + _activeWaypointIndex = initialWaypoints.isEmpty ? null : 0; double _anchorLat; double _anchorLon; diff --git a/app/lib/transport/udp/udp_transport.dart b/app/lib/transport/udp/udp_transport.dart index 7e9b43a..5e34076 100644 --- a/app/lib/transport/udp/udp_transport.dart +++ b/app/lib/transport/udp/udp_transport.dart @@ -34,17 +34,13 @@ class UdpTransport implements LinkTransport { static const _defaultMlrsHost = '192.168.4.55'; UdpTransport({ - required Future Function() getHost, + required this._getHost, required Future Function() getPort, - required Future Function() getSsidPrefix, - required Future Function() getRememberedSsid, - required Future Function(String ssid) rememberSsid, + required this._getSsidPrefix, + required this._getRememberedSsid, + required this._rememberSsid, MlrsNetworkController? networkController, - }) : _getHost = getHost, - _getPort = getPort, - _getSsidPrefix = getSsidPrefix, - _getRememberedSsid = getRememberedSsid, - _rememberSsid = rememberSsid, + }) : _getPort = getPort, _networkController = networkController ?? MethodChannelMlrsNetworkController();