From dc874ebf490abad0980623271db2fb2b768081ad Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 27 Sep 2016 19:17:28 +0300 Subject: [PATCH 1/3] New article by Kadda Sahnine --- docs/articles.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/articles.rst b/docs/articles.rst index 06006a51..23540193 100644 --- a/docs/articles.rst +++ b/docs/articles.rst @@ -25,6 +25,7 @@ Here are recent articles/reviews about PlatformIO: * Sep 20, 2016 - **The Linux Foundation** - `21 Open Source Projects for IoT `_ * Sep 19, 2016 - **Doc Walker** - `How to automatically test build Arduino libraries `_ +* Sep 18, 2016 - **Kadda Sahnine** - `LoRaWAN network practice with Objenious, PlatformIO and Node-RED `_ * Sep 12, 2016 - **Pedro Minatel** - `OTA – Como programar o ESP8266 pelo WiFi no platformIO (OTA programming for ESP8266 via Wi-Fi using PlatformIO, Portuguese) `_ * Sep 2, 2016 - **Tinkerman** `ESP8266: Optimizing files for SPIFFS with Gulp `_ * Aug 28, 2016 - **Tom Parker** `Using the BBC micro:bit with PlatformIO `_ From 71d74f40b0c16ce0b3427bc29fe02d6e34148255 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 29 Sep 2016 18:58:35 +0300 Subject: [PATCH 2/3] Fix issue with "PATH" auto-configuring for upload tools --- HISTORY.rst | 1 + platformio/__init__.py | 2 +- platformio/builder/tools/pioplatform.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 46be4a40..683b1c13 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,6 +9,7 @@ PlatformIO 3.0 * Improved detecting of ARM mbed media disk for uploading * Improved Project Generator for CLion IDE when source folder contains nested items +* Fixed issue with ``PATH`` auto-configuring for upload tools ------- diff --git a/platformio/__init__.py b/platformio/__init__.py index 9e4ad77e..71167fe7 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -14,7 +14,7 @@ import sys -VERSION = (3, 1, "1a1") +VERSION = (3, 1, "1a2") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/platformio/builder/tools/pioplatform.py b/platformio/builder/tools/pioplatform.py index 42ad2ef4..2c4d9184 100644 --- a/platformio/builder/tools/pioplatform.py +++ b/platformio/builder/tools/pioplatform.py @@ -31,7 +31,7 @@ def initPioPlatform(name): def PioPlatform(env): variables = {} for key in ("board", "pioframework"): - if key not in env: + if key.upper() not in env: continue variables[key] = env[key.upper()] p = initPioPlatform(env['PLATFORM_MANIFEST']) From 36ced8010ae7358d7104acfbac124beb9c5e526b Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 29 Sep 2016 19:03:56 +0300 Subject: [PATCH 3/3] Fix "99-platformio-udev.rules" checker for Linux OS --- HISTORY.rst | 1 + platformio/builder/tools/pioupload.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 683b1c13..5d692d50 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -10,6 +10,7 @@ PlatformIO 3.0 * Improved detecting of ARM mbed media disk for uploading * Improved Project Generator for CLion IDE when source folder contains nested items * Fixed issue with ``PATH`` auto-configuring for upload tools +* Fixed ``99-platformio-udev.rules`` checker for Linux OS ------- diff --git a/platformio/builder/tools/pioupload.py b/platformio/builder/tools/pioupload.py index d0c54451..f67cdccb 100644 --- a/platformio/builder/tools/pioupload.py +++ b/platformio/builder/tools/pioupload.py @@ -117,8 +117,8 @@ def AutodetectUploadPort(*args, **kwargs): # pylint: disable=unused-argument env.Replace(UPLOAD_PORT=_look_for_mbed_disk()) else: if (system() == "Linux" and not any([ - isfile("/etc/udev/99-platformio-udev.rules"), - isfile("/etc/rules.d/99-platformio-udev.rules") + isfile("/etc/udev/rules.d/99-platformio-udev.rules"), + isfile("/lib/udev/rules.d/99-platformio-udev.rules") ])): sys.stderr.write( "\nWarning! Please install `99-platformio-udev.rules` and "