diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-08-03 16:40:45 -0700 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-08-21 14:39:37 -0500 |
| commit | 644d2ba7a2075c44306583fada847047a7a44d5d (patch) | |
| tree | 662b893a81b56c4e86522427e3372ff8684effa6 /ports/nrf | |
| parent | 5771be9510be87c72a58cdf3f70ff3744d8ec169 (diff) | |
Add more "extern" declarations for gcc10 compat
gcc has tightened the restrictions on forward declarations that lack
"extern". Fix them up.
Diffstat (limited to 'ports/nrf')
| -rw-r--r-- | ports/nrf/common-hal/_bleio/__init__.c | 2 | ||||
| -rw-r--r-- | ports/nrf/common-hal/_bleio/__init__.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ports/nrf/common-hal/_bleio/__init__.c b/ports/nrf/common-hal/_bleio/__init__.c index e84bba662..23d7397c7 100644 --- a/ports/nrf/common-hal/_bleio/__init__.c +++ b/ports/nrf/common-hal/_bleio/__init__.c @@ -87,6 +87,8 @@ void check_sec_status(uint8_t sec_status) { } } +bool vm_used_ble; + // Turn off BLE on a reset or reload. void bleio_reset() { if (!common_hal_bleio_adapter_get_enabled(&common_hal_bleio_adapter_obj)) { diff --git a/ports/nrf/common-hal/_bleio/__init__.h b/ports/nrf/common-hal/_bleio/__init__.h index e216795fc..6881c90e6 100644 --- a/ports/nrf/common-hal/_bleio/__init__.h +++ b/ports/nrf/common-hal/_bleio/__init__.h @@ -45,6 +45,6 @@ void check_gatt_status(uint16_t gatt_status); void check_sec_status(uint8_t sec_status); // Track if the user code modified the BLE state to know if we need to undo it on reload. -bool vm_used_ble; +extern bool vm_used_ble; #endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_INIT_H |
