Skip to content

Commit

Permalink
consume all data after the first keypress (e.g. on windows it might s…
Browse files Browse the repository at this point in the history
…end CR+LF.)
  • Loading branch information
m-mcgowan committed Mar 7, 2016
1 parent dd502f9 commit 44e7b76
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The simplest way is to use the Particle WebIDE:

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.

Once the app has been flashed, the device will breathe white - it doesn't connect to the cloud or use Wi-Fi.
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.

### Using the Programmer App

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



Expand Down
8 changes: 8 additions & 0 deletions firmware/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

# 0.1.3

## Bugfixes

- Consume all input after the initial keypress. (Fixes issue on Windows where the pressing enter sends CR+LF, but only one character was consumed.)


# 0.1.2

## Features
Expand Down
2 changes: 1 addition & 1 deletion firmware/examples/Norwegian_Blue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Fixit
RGB.control(true);
RGB.color(0,0,255);
while (!Serial.available()) {}
Serial.read();
while (Serial.available()) Serial.read();
}

uint8_t option(const char* msg, std::initializer_list<const char*> opts, int def=-1, bool listOpts=true)
Expand Down
2 changes: 1 addition & 1 deletion spark.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swd",
"version": "0.1.2",
"version": "0.1.3",
"author": "mdma <mat dot mcgowan+particle at gmail dot com>",
"license": "LGPLv3",
"description": "Implements the SWD protocol and STM32F2xx flash operations. This allows one device to program another by connecting 2 data lines."
Expand Down

0 comments on commit 44e7b76

Please sign in to comment.