src/main/kotlin/com/flightfeather/uav/socket/DeviceSession.kt
@@ -38,10 +38,10 @@ } fun getAirType(deviceCode: String?): List<AirTypeData>? { return if (typeMap.containsKey(deviceCode)) { typeMap[deviceCode] } else { null return when { deviceCode == null -> typeMap[DEFAULT_DEVICE] typeMap.containsKey(deviceCode) -> typeMap[deviceCode] else -> null } } }