1
0
Fork 0
wasp-os/wasp/boards/simulator/ble.py
Francesco Gazzetta b8a50db03c Add DisaBLE app that disables bluetooth
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-12-26 21:25:07 +00:00

15 lines
268 B
Python

# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (C) 2021 Francesco Gazzetta
_is_enabled = True
def enable():
global _is_enabled
_is_enabled = True
def disable():
global _is_enabled
_is_enabled = False
def enabled():
return _is_enabled