mirror of
https://github.com/pdxlocations/contact.git
synced 2026-05-03 03:52:16 +02:00
@@ -9,9 +9,14 @@ V 0.1.7
|
||||
import curses
|
||||
import meshtastic.serial_interface, meshtastic.tcp_interface
|
||||
from pubsub import pub
|
||||
from meshtastic import config_pb2, BROADCAST_NUM
|
||||
import textwrap # Import the textwrap module
|
||||
|
||||
try:
|
||||
from meshtastic.protobuf import config_pb2
|
||||
from meshtastic import BROADCAST_NUM
|
||||
except ImportError:
|
||||
from meshtastic import config_pb2, BROADCAST_NUM
|
||||
|
||||
from settings import settings
|
||||
|
||||
# Initialize Meshtastic interface
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
import curses
|
||||
from meshtastic import config_pb2, module_config_pb2, mesh_pb2, channel_pb2
|
||||
import meshtastic.serial_interface, meshtastic.tcp_interface
|
||||
import ipaddress
|
||||
|
||||
try:
|
||||
from meshtastic.protobuf import config_pb2, module_config_pb2, mesh_pb2, channel_pb2
|
||||
except ImportError:
|
||||
from meshtastic import config_pb2, module_config_pb2, mesh_pb2, channel_pb2
|
||||
|
||||
def display_enum_menu(stdscr, enum_values, menu_item):
|
||||
menu_height = len(enum_values) + 2
|
||||
|
||||
Reference in New Issue
Block a user