Also added two additional alert options:
alertFlash
alertHonk
This commit is contained in:
BigThunderSR 2023-03-09 18:34:17 -06:00 committed by GitHub
parent f69adb279e
commit b20be30d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,14 +71,26 @@ class Commands {
return this.onstar.cancelStart();
}
async alert({action = [Commands.CONSTANTS.ALERT_ACTION.FLASH],
delay = 0, duration = 1, override = []}) {
return this.onstar.alert({
action,
delay,
duration,
override
});
//async alert({action = [Commands.CONSTANTS.ALERT_ACTION.FLASH],
// delay = 0, duration = 1, override = []}) {
// return this.onstar.alert({
// action,
// delay,
// duration,
// override
// });
//}
async alert() {
return this.onstar.alert();
}
async alertFlash({action = [Commands.CONSTANTS.ALERT_ACTION.FLASH]}) {
return this.onstar.alert({action});
}
async alertHonk({action = [Commands.CONSTANTS.ALERT_ACTION.HONK]}) {
return this.onstar.alert({action});
}
async cancelAlert() {