Skip to content

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

+3-1
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)