新增 logger 打印方法
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import '../enums/vehicle_command_type.dart';
|
||||
import '../utils/logger.dart';
|
||||
|
||||
/// 车辆控制命令类
|
||||
class VehicleCommand {
|
||||
@@ -22,8 +23,6 @@ class VehicleCommand {
|
||||
orElse: () => VehicleCommandType.unknown,
|
||||
);
|
||||
} catch (e) {
|
||||
print('Error parsing command string: $e');
|
||||
// 默认为搜车指令,或者你可以选择抛出异常
|
||||
type = VehicleCommandType.unknown;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user