mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 18:38:33 +00:00
Changed logic to avoid end value being shown twice
This commit is contained in:
committed by
Akos Kitta
parent
3476de27f7
commit
cdaaa5584d
@@ -74,19 +74,17 @@ class HistoryList {
|
|||||||
if (this.index !== this.end) {
|
if (this.index !== this.end) {
|
||||||
this.traverse = true;
|
this.traverse = true;
|
||||||
this.index = (++this.index < this.size) ? this.index : 0;
|
this.index = (++this.index < this.size) ? this.index : 0;
|
||||||
return this.ring[this.index];
|
if(this.index === this.end)
|
||||||
|
this.traverse = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!this.traverse) {
|
if (!this.traverse) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
else {
|
}
|
||||||
this.traverse = false;
|
|
||||||
return this.ring[this.index];
|
return this.ring[this.index];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace SerialMonitorSendInput {
|
export namespace SerialMonitorSendInput {
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
|||||||
Reference in New Issue
Block a user