aboutsummaryrefslogtreecommitdiff
path: root/drivers/nrf24l01
diff options
context:
space:
mode:
authorDamien George2016-11-03 12:41:11 +1100
committerDamien George2016-11-03 12:41:11 +1100
commit7bb0f7b0f6218e813ca1ea9a21d5d549c7b36ab9 (patch)
tree4adf5c1a592d003b84aa9706aa0fced9f41442ed /drivers/nrf24l01
parent561844f3ba2dc81ce37c58468099042e27cd422b (diff)
drivers: Add "from micropython import const" when const is used.
Following best-practice use of the const feature, to make it compatible with Python.
Diffstat (limited to 'drivers/nrf24l01')
-rw-r--r--drivers/nrf24l01/nrf24l01.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nrf24l01/nrf24l01.py b/drivers/nrf24l01/nrf24l01.py
index a244b0b25..3c79650bf 100644
--- a/drivers/nrf24l01/nrf24l01.py
+++ b/drivers/nrf24l01/nrf24l01.py
@@ -1,6 +1,7 @@
"""NRF24L01 driver for Micro Python
"""
+from micropython import const
import pyb
# nRF24L01+ registers