fix return type

This commit is contained in:
David Westgate 2025-04-11 19:36:22 -07:00
parent c89f936c07
commit 042ca036f5

View File

@ -43,7 +43,7 @@ def get_rssi_from_pkt(packet: list[int]):
def get_rssi_from_reg(spi: SpiDev): def get_rssi_from_reg(spi: SpiDev):
return read_register(spi, RSSI) return read_register(spi, RSSI)
def get_signal_strength_rssi_raw(rssi_raw): def get_signal_strength_rssi_raw(rssi_raw: int) -> float:
if rssi_raw >= 128: if rssi_raw >= 128:
rssi_dec = rssi_raw - 256 rssi_dec = rssi_raw - 256
else: else: