Skip to content
Snippets Groups Projects
Unverified Commit 0c778263 authored by Eric Rosenbaum's avatar Eric Rosenbaum Committed by GitHub
Browse files

Merge pull request #2651 from evhan55/feature/device-connection-fixes

EV3/Microbit critical fixes for code freeze
parents 374bbcfe 4f11e856
Branches
Tags
No related merge requests found
......@@ -32,7 +32,10 @@ class ScanningStep extends React.Component {
'PERIPHERAL_SCAN_TIMEOUT', this.handlePeripheralScanTimeout);
}
handlePeripheralScanTimeout () {
this.setState({scanning: false});
this.setState({
scanning: false,
deviceList: []
});
}
handlePeripheralListUpdate (newList) {
// TODO: sort peripherals by signal strength? so they don't jump around
......@@ -53,6 +56,7 @@ class ScanningStep extends React.Component {
<ScanningStepComponent
deviceList={this.state.deviceList}
phase={this.state.phase}
scanning={this.state.scanning}
smallDeviceImage={this.props.smallDeviceImage}
title={this.props.extensionId}
onConnected={this.props.onConnected}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment