diff --git a/src/app/drivers/drivers.page.html b/src/app/drivers/drivers.page.html
index 52aab46..f72b4c6 100644
--- a/src/app/drivers/drivers.page.html
+++ b/src/app/drivers/drivers.page.html
@@ -6,6 +6,11 @@
Drivers
+
+
+ CODE
+
+
diff --git a/src/app/drivers/drivers.page.ts b/src/app/drivers/drivers.page.ts
index faf77d0..e58d603 100644
--- a/src/app/drivers/drivers.page.ts
+++ b/src/app/drivers/drivers.page.ts
@@ -9,9 +9,12 @@ import { TranslateService } from '@ngx-translate/core';
import { Observable } from 'rxjs';
import { AppSettings, Driver } from '../app-settings';
-import { AppService, LoggingService, SpeechService } from '../services';
+import { AppService, ControlUnitService, LoggingService, SpeechService } from '../services';
+
import { ColorComponent } from './color.component';
+import { ControlUnitButton } from '../carrera';
+
@Component({
templateUrl: 'drivers.page.html'
})
@@ -25,6 +28,7 @@ export class DriversPage implements OnDestroy, OnInit {
constructor(
private app: AppService,
+ private cu: ControlUnitService,
private logger: LoggingService,
private settings: AppSettings,
private mc: ModalController,
@@ -94,6 +98,10 @@ export class DriversPage implements OnDestroy, OnInit {
})
}
+ pressCodeButton() {
+ this.cu.value.trigger(ControlUnitButton.CODE);
+ }
+
onChangeName(event) {
event?.target?.getInputElement().then(e => e.blur());
}