# Path: groundstation/logger.py
#     LEVEL = getattr(logging, os.getenv("GROUNDSTATION_DEBUG"))
#     LEVEL = logging.DEBUG
# CONSOLE_FORMATTER = _get_formatter()
# CONSOLE_HANDLER = _get_console_handler()
# LOGGERS = {}  # Cache for instanciated loggers
# def fix_oid(oid):
# def _get_formatter():
# def _get_console_handler():
# def getLogger(name):  # Not threadsafe


import groundstation.audio as audio
import base64
import struct
import time
from quietnet import psk
from quietnet import options
from quietnet import quietnet as quietnet
from quietnet.send import send_bytes
from groundstation import logger




log = logger.getLogger(__name__)

def make_buffer_from_bit_pattern(pattern, on_freq, off_freq):
    last_bit = pattern[-1]
    output_buffer = []

# Path: groundstation/logger.py
#     LEVEL = getattr(logging, os.getenv("GROUNDSTATION_DEBUG"))
#     LEVEL = logging.DEBUG
# CONSOLE_FORMATTER = _get_formatter()
# CONSOLE_HANDLER = _get_console_handler()
# LOGGERS = {}  # Cache for instanciated loggers
# def fix_oid(oid):
# def _get_formatter():
# def _get_console_handler():
# def getLogger(name):  # Not threadsafe


# Path: groundstation/audio_shrieker.py
import groundstation.audio as audio
import base64
import struct
import time
from quietnet import psk
from quietnet import options
from quietnet import quietnet as quietnet
from quietnet.send import send_bytes
from groundstation import logger





log = logger.getLogger(__name__)

def make_buffer_from_bit_pattern(pattern, on_freq, off_freq):
    last_bit = pattern[-1]
    output_buffer = []

    offset = 0