You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
remove debug
This commit is contained in:
@@ -7,7 +7,6 @@ class Queue:
|
||||
def __init__(self, maxsize=0):
|
||||
self._queue = []
|
||||
self.maxsize = maxsize # 0 means unlimited
|
||||
#self.maxsize = 4 # limit to avoid stack overflow
|
||||
self._lock = _thread.allocate_lock() if _thread else None
|
||||
|
||||
def put(self, item):
|
||||
@@ -26,12 +25,10 @@ class Queue:
|
||||
with self._lock:
|
||||
if not self._queue:
|
||||
raise RuntimeError("Queue is empty")
|
||||
print("queue not empty, returning one object!!!")
|
||||
return self._queue.pop(0)
|
||||
else:
|
||||
if not self._queue:
|
||||
raise RuntimeError("Queue is empty")
|
||||
print("queue not empty, returning one object!!!")
|
||||
return self._queue.pop(0)
|
||||
|
||||
def qsize(self):
|
||||
|
||||
@@ -267,15 +267,12 @@ class Lib:
|
||||
return 0
|
||||
|
||||
def secp256k1_schnorrsig_verify(self, ctx, schnorr_sig, msg, msg_len, xonly_pubkey):
|
||||
print("compat.py secp256k1_schnorrsig_verify 1")
|
||||
try:
|
||||
print("compat.py secp256k1_schnorrsig_verify 2")
|
||||
if isinstance(xonly_pubkey, FFI.CData):
|
||||
xonly_pubkey = xonly_pubkey._data
|
||||
print("compat.py secp256k1_schnorrsig_verify 3")
|
||||
return usecp256k1.schnorrsig_verify(schnorr_sig, msg, xonly_pubkey)
|
||||
except (ValueError, AttributeError):
|
||||
print("compat.py secp256k1_schnorrsig_verify error")
|
||||
print("WARNING: secp256k1_compat.py secp256k1_schnorrsig_verify error, returning 0")
|
||||
return 0
|
||||
|
||||
def secp256k1_tagged_sha256(self, ctx, hash32, tag, tag_len, msg, msg_len):
|
||||
|
||||
@@ -13,12 +13,14 @@ from nostr.message_type import ClientMessageType
|
||||
#timestamp = round(time.time()-50)
|
||||
#timestamp = round(time.time()) # going for zero events to check memory use
|
||||
|
||||
timetogoback = 100
|
||||
|
||||
import sys
|
||||
if sys.platform == "esp32":
|
||||
# on esp32, it needs this correction:
|
||||
timestamp = time.time() + 946684800 - 1000
|
||||
timestamp = time.time() + 946684800 - timetogoback
|
||||
else:
|
||||
timestamp = round(time.time()-1000)
|
||||
timestamp = round(time.time()-timetogoback)
|
||||
#timestamp = round(time.time()-1000)
|
||||
#timestamp = round(time.time()-5000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user