]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Fix more agnostic uses.
authorScott Shawcroft <scott@tannewt.org>
Mon, 2 Jul 2018 16:19:45 +0000 (09:19 -0700)
committerScott Shawcroft <scott@tannewt.org>
Mon, 2 Jul 2018 16:19:45 +0000 (09:19 -0700)
src/microcontroller/__init__.py
src/microcontroller/pin.py

index 8159e37ed8bfdfc7ce22b69e5691e30ecad64541..3973148c779705b5d30e643de0f352da126267e2 100755 (executable)
@@ -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)
index 6820d3ffa686e710e66457667aa919016421c8b0..05660a5f2a3bdfe2a754df5fd5f2b9f64d255944 100755 (executable)
@@ -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")