Skip to content

Commit 44e7b76

Browse files
committed
consume all data after the first keypress (e.g. on windows it might send CR+LF.)
1 parent dd502f9 commit 44e7b76

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The simplest way is to use the Particle WebIDE:
5050

5151
Alternatively, you can download the latest release for your programmer device from the [Releases](https://github.com/m-mcgowan/embedded-swd/releases) page on GitHub.
5252

53-
Once the app has been flashed, the device will breathe white - it doesn't connect to the cloud or use Wi-Fi.
53+
Once the app has been flashed, the device will show a steady blue LED. The device doesn't connect to the cloud or use Wi-Fi.
5454

5555
### Using the Programmer App
5656

@@ -59,7 +59,7 @@ Once the app has been flashed, the device will breathe white - it doesn't connec
5959
- Read the messages that appear.
6060
- If you're sure you want to continue flashing the target device, type `Y` and press return.
6161
- Follow the on-screen prompts.
62-
- Once flashing is complete, your target device should be showing signs of life via the main LED!
62+
- Once flashing is complete, your target device should be showing signs of life via the main LED! The programmer LED turns green.
6363

6464

6565

firmware/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2+
# 0.1.3
3+
4+
## Bugfixes
5+
6+
- Consume all input after the initial keypress. (Fixes issue on Windows where the pressing enter sends CR+LF, but only one character was consumed.)
7+
8+
19
# 0.1.2
210

311
## Features

firmware/examples/Norwegian_Blue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Fixit
5151
RGB.control(true);
5252
RGB.color(0,0,255);
5353
while (!Serial.available()) {}
54-
Serial.read();
54+
while (Serial.available()) Serial.read();
5555
}
5656

5757
uint8_t option(const char* msg, std::initializer_list<const char*> opts, int def=-1, bool listOpts=true)

spark.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swd",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"author": "mdma <mat dot mcgowan+particle at gmail dot com>",
55
"license": "LGPLv3",
66
"description": "Implements the SWD protocol and STM32F2xx flash operations. This allows one device to program another by connecting 2 data lines."

0 commit comments

Comments
 (0)