Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 61262c2

Browse files
committed
fix: reset charCount on serial monitor reset
1 parent 7503739 commit 61262c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎arduino-ide-extension/src/browser/monitor/serial-monitor-send-output.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ export class SerialMonitorOutput extends React.Component<
7171
});
7272
this.scrollToBottom();
7373
}),
74-
this.props.clearConsoleEvent(() => this.setState({ lines: [] })),
74+
this.props.clearConsoleEvent(() =>
75+
this.setState({ lines: [], charCount: 0 })
76+
),
7577
this.props.monitorModel.onChange(({ property }) => {
7678
if (property === 'timestamp') {
7779
const { timestamp } = this.props.monitorModel;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /