Skip to content

Commit

Permalink
Fix Issue #1019
Browse files Browse the repository at this point in the history
- The particle device doctor steps should not be shown on Gen 3 devices. It's now controlled by a device feature flag, so it can be turned on an off per device type easily.
  • Loading branch information
rickkas7 committed Aug 27, 2019
1 parent 731d2e5 commit cbd7a50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions config/device_features.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"wpa-enterprise",
"tcpserver",
"tcpclient",
"udp-multicast"
"udp-multicast",
"device-doctor"
],
"Electron": [
"stm32",
Expand Down Expand Up @@ -104,7 +105,8 @@
"spi-settings",
"no-tcpserver",
"tcpclient",
"udp-cloud"
"udp-cloud",
"device-doctor"
],
"Raspberry Pi": [
"linux",
Expand Down
8 changes: 6 additions & 2 deletions src/content/tutorials/device-os/led.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,11 +537,15 @@ Factory reset is not available on the {{device}}, but not to worry! If you are e
You can reset Wi-Fi credentials by performing a [Wi-Fi Network Reset](#wi-fi-network-reset).
{{/if}}

{{#if has-device-doctor}}
The [Particle CLI](https://docs.particle.io/tutorials/developer-tools/cli) can also reset the firmware using:

```
particle device doctor
```
{{/if}} {{!-- has-device-doctor --}}


{{/if}} {{!-- has-mesh --}}

{{/unless}} {{!-- core --}}
Expand Down Expand Up @@ -808,13 +812,13 @@ If your {{device}} crashes repeatedly with an SOS code, first try recovering wit
particle flash <mydevice> tinker
```

{{#unless core}}
{{#if has-device-doctor}}
If it's not possible to enter Safe Mode, your Device OS may be corrupted. Use the Device Doctor feature of the CLI to put your {{device}} into a healthy state.

```
particle device doctor
```
{{/unless}}
{{/if}}

Some tips for reducing the memory used by your firmware [can be found here](/faq/particle-devices/code-size-tips).

Expand Down

0 comments on commit cbd7a50

Please sign in to comment.