fixes for working on mac air

This commit is contained in:
Mike Kinney
2022-01-11 16:36:39 -08:00
parent 9e74ead54e
commit bc17e9b389
7 changed files with 22 additions and 6 deletions

View File

@@ -72,7 +72,6 @@ from typing import *
import serial
import timeago
import google.protobuf.json_format
import pygatt
from pubsub import pub
from dotmap import DotMap
from tabulate import tabulate
@@ -83,6 +82,10 @@ from meshtastic import (mesh_pb2, portnums_pb2, apponly_pb2, admin_pb2,
environmental_measurement_pb2, remote_hardware_pb2,
channel_pb2, radioconfig_pb2, util)
if platform.system() == 'Linux':
# pylint: disable=E0401
import pygatt
# Note: To follow PEP224, comments should be after the module variable.
LOCAL_ADDR = "^local"