NebraLtd / hm-pktfwd

Helium Miner Packet Forwarder
https://nebra.io/hnt
MIT License
12 stars 25 forks source link

checksx1302.py necessary file? #25

Closed shawaj closed 3 years ago

shawaj commented 3 years ago

https://github.com/NebraLtd/hm-pktfwd/blob/master/files/checksx1302.py - do we need this file for any reason?

Removed it in #22 as don't think we are using it at all

# This program checks if the lora module is an SX1301 or SX1302/3

import os

euiTest = os.popen('./chip_id -d /dev/spidev1.2').read()

if "concentrator EUI:" in euiTest:
    print("SX1302")
else:
    print("SX1301")
shawaj commented 3 years ago

looks like this is pulled in directly into the configurePktFwd.py file...

https://github.com/NebraLtd/hm-pktfwd/blob/28a54db374921dca4071602030c8a5ed6a46a3e5/files/configurePktFwd.py#L143-L144

shawaj commented 3 years ago

closing as definitely not needed