chore: SonarLint fixes
This commit is contained in:
parent
36644a1af2
commit
3a67ed31b2
3 changed files with 2 additions and 7 deletions
|
@ -93,7 +93,7 @@ class MainActivity : AppCompatActivity() {
|
|||
val context = this
|
||||
pairedDevices?.firstOrNull { device ->
|
||||
Log.d(TAG, device.name)
|
||||
device.name.equals("GARMIN HUD")
|
||||
device.name == "GARMIN HUD"
|
||||
}?.apply {
|
||||
Garmin.instance = Garmin(context, this, bluetoothAdapter)
|
||||
Garmin.instance.start()
|
||||
|
|
|
@ -168,7 +168,6 @@ class RouteControl(private val mapControl: MapControl, ui: UI, private val conte
|
|||
mapControl.ui.maneuverView.visibility = View.VISIBLE
|
||||
mapControl.ui.maneuverView.renderManeuvers(maneuvers)
|
||||
Garmin.instance.process(it[0])
|
||||
// dump(maneuvers.value[0])
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from main import *
|
||||
from main import Controller, Lane, OutType, OutAngle, Unit
|
||||
from time import sleep
|
||||
|
||||
interval = 0.2
|
||||
|
@ -74,7 +74,6 @@ def distance(controller: Controller):
|
|||
controller.set_distance(999, Unit.Metres)
|
||||
controller.set_distance(999, Unit.Foot)
|
||||
controller.set_distance(999, Unit.Miles)
|
||||
pass
|
||||
|
||||
|
||||
def speed(controller: Controller):
|
||||
|
@ -84,7 +83,6 @@ def speed(controller: Controller):
|
|||
controller.set_speed(50, 100)
|
||||
controller.set_speed(150, 100)
|
||||
controller.set_speed(50, 100, True)
|
||||
pass
|
||||
|
||||
|
||||
def time(controller: Controller):
|
||||
|
@ -92,7 +90,6 @@ def time(controller: Controller):
|
|||
controller.set_time(22, 22)
|
||||
controller.set_time(22, 22, traffic=True)
|
||||
controller.set_time(22, 22, flag=True)
|
||||
pass
|
||||
|
||||
|
||||
def control(controller: Controller):
|
||||
|
@ -111,7 +108,6 @@ def compass(controller: Controller):
|
|||
controller.set_compass(247.5)
|
||||
controller.set_compass(292.5)
|
||||
controller.set_compass(337.5)
|
||||
pass
|
||||
|
||||
|
||||
def route(controller: Controller):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue