feat(mileage): default to instrument-only source
This commit is contained in:
@@ -2,8 +2,8 @@ export type MileageSourceGroup = 'instrument' | 'gps';
|
||||
export type OneOsProtocol = 'GB32960' | 'MQTT' | 'JT808';
|
||||
export type MileageSourceCategory = 'INSTRUMENT' | 'GPS';
|
||||
|
||||
export const DEFAULT_MILEAGE_SOURCE_PRIORITY: MileageSourceGroup[] = ['instrument', 'gps'];
|
||||
export const DEFAULT_ONEOS_PROTOCOL_PRIORITY: OneOsProtocol[] = ['GB32960', 'MQTT', 'JT808'];
|
||||
export const DEFAULT_MILEAGE_SOURCE_PRIORITY: MileageSourceGroup[] = ['instrument'];
|
||||
export const DEFAULT_ONEOS_PROTOCOL_PRIORITY: OneOsProtocol[] = ['GB32960', 'MQTT'];
|
||||
|
||||
export function parseMileageSourcePriority(value?: string): MileageSourceGroup[] {
|
||||
if (!value) return [...DEFAULT_MILEAGE_SOURCE_PRIORITY];
|
||||
|
||||
Reference in New Issue
Block a user