Revert "Version 2.3.4"

This reverts commit 3916fec8ed.

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-08 20:26:21 +02:00
parent 4b0738f6f7
commit f12b9ebcf8
7 changed files with 17 additions and 25 deletions

View File

@ -85,5 +85,8 @@ class Peer(object):
def epoch(self):
return self.adv.get('epoch', 0)
def full_name(self):
return '%s@%s' % (self.name(), self.identity())
def is_closer(self, other):
return self.rssi > other.rssi

View File

@ -1,5 +1,4 @@
# import _thread
from concurrent.futures import ThreadPoolExecutor
import _thread
import logging
import time
@ -42,9 +41,7 @@ class AsyncAdvertiser(object):
def start_advertising(self):
if self._config['personality']['advertise']:
# _thread.start_new_thread(self._adv_poller, ())
with ThreadPoolExecutor(max_workers=4) as executor:
executor.submit(self._adv_poller)
_thread.start_new_thread(self._adv_poller, ())
grid.set_advertisement_data(self._advertisement)
grid.advertise(True)