Update pong_bot.py

This commit is contained in:
SpudGunMan
2024-09-01 21:53:01 -07:00
parent f703a8868b
commit e968173f61
+2
View File
@@ -143,6 +143,8 @@ def onReceive(packet, interface):
message_from_id = 0
# check for a message packet and process it
snr = 0
rssi = 0
try:
if 'decoded' in packet and packet['decoded']['portnum'] == 'TEXT_MESSAGE_APP':
message_bytes = packet['decoded']['payload']