File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 62
62
pass
63
63
64
64
try :
65
- from typing import Optional , Type
65
+ from typing import Callable , Optional , Type
66
66
from circuitpython_typing import WriteableBuffer , ReadableBuffer
67
67
from digitalio import DigitalInOut
68
68
from busio import SPI
@@ -151,7 +151,7 @@ def ticks_diff(ticks1: int, ticks2: int) -> int:
151
151
return diff
152
152
153
153
154
- def check_timeout (flag : int , limit : float ) -> bool :
154
+ def check_timeout (flag : Callable , limit : float ) -> bool :
155
155
"""test for timeout waiting for specified flag"""
156
156
timed_out = False
157
157
if HAS_SUPERVISOR :
@@ -738,11 +738,11 @@ def frequency_deviation(self, val: float) -> None:
738
738
self ._write_u8 (_REG_FDEV_MSB , fdev >> 8 )
739
739
self ._write_u8 (_REG_FDEV_LSB , fdev & 0xFF )
740
740
741
- def packet_sent (self ) -> int :
741
+ def packet_sent (self ) -> bool :
742
742
"""Transmit status"""
743
743
return (self ._read_u8 (_REG_IRQ_FLAGS2 ) & 0x8 ) >> 3
744
744
745
- def payload_ready (self ) -> int :
745
+ def payload_ready (self ) -> bool :
746
746
"""Receive status"""
747
747
return (self ._read_u8 (_REG_IRQ_FLAGS2 ) & 0x4 ) >> 2
748
748
You can’t perform that action at this time.
0 commit comments