From 7bb0f7b0f6218e813ca1ea9a21d5d549c7b36ab9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 3 Nov 2016 12:41:11 +1100 Subject: drivers: Add "from micropython import const" when const is used. Following best-practice use of the const feature, to make it compatible with Python. --- stmhal/boards/STM32F4DISC/staccel.py | 1 + 1 file changed, 1 insertion(+) (limited to 'stmhal/boards/STM32F4DISC/staccel.py') diff --git a/stmhal/boards/STM32F4DISC/staccel.py b/stmhal/boards/STM32F4DISC/staccel.py index 7296662cac..2f2561d1cb 100644 --- a/stmhal/boards/STM32F4DISC/staccel.py +++ b/stmhal/boards/STM32F4DISC/staccel.py @@ -14,6 +14,7 @@ See: STM32Cube_FW_F4_V1.1.0/Projects/STM32F4-Discovery/Demonstrations/Src/main.c """ +from micropython import const from pyb import Pin from pyb import SPI -- cgit v1.2.3