Button name clashes with C++

This commit is contained in:
Michal Moskal
2017-07-10 12:48:04 +01:00
parent 0cc3cfee4b
commit 0d9e719078
3 changed files with 5 additions and 5 deletions

View File

@ -43,14 +43,14 @@ namespace input {
export class IrSensor extends internal.UartSensor {
private channel: IrRemoteChannel
private pollRunning: boolean
private buttons: Button[];
private buttons: ButtonTS[];
constructor() {
super()
this.channel = IrRemoteChannel.Ch0
this.buttons = []
for (let i = 0; i < 5; ++i) {
this.buttons.push(new Button())
this.buttons.push(new ButtonTS())
}
}