From: Scott Shawcroft Date: Mon, 2 Jul 2018 16:19:45 +0000 (-0700) Subject: Fix more agnostic uses. X-Git-Tag: 0.1.9^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/92decd8724b3cd452fe0e73ee3d6df28f9d6d0f1 Fix more agnostic uses. --- diff --git a/src/microcontroller/__init__.py b/src/microcontroller/__init__.py index 8159e37..3973148 100755 --- a/src/microcontroller/__init__.py +++ b/src/microcontroller/__init__.py @@ -31,6 +31,6 @@ elif platform == "linux": if board_id == "raspi_3" or board_id == "raspi_2": from adafruit_blinka.microcontroller.raspi_23 import * else: - raise NotImplementedError("Board not supported: ", board_id) + raise NotImplementedError("Board not supported:", board_id) else: - raise NotImplementedError("Microcontroller not supported: ", agnostic.microcontroller) + raise NotImplementedError("Platform not supported:", platform) diff --git a/src/microcontroller/pin.py b/src/microcontroller/pin.py index 6820d3f..05660a5 100755 --- a/src/microcontroller/pin.py +++ b/src/microcontroller/pin.py @@ -13,6 +13,6 @@ elif agnostic.platform == "linux": if agnostic.board_id == "raspi_3" or agnostic.board_id == "raspi_2": from adafruit_blinka.microcontroller.raspi_23.pin import * else: - raise NotImplementedError("Board not supported: ", agnostic.board) + raise NotImplementedError("Board not supported: ", agnostic.board_id) else: raise NotImplementedError("Microcontroller not supported")