drivers: Fix some minor spelling mistakes.

respones -> response
succeses -> successes
This commit is contained in:
Mike Causer 2016-12-21 13:48:44 +11:00 committed by Damien George
parent a79f6676c3
commit c5310ee5b5
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ def master():
timeout = True
if timeout:
print('failed, respones timed out')
print('failed, response timed out')
num_failures += 1
else:
@ -57,7 +57,7 @@ def master():
# delay then loop
pyb.delay(250)
print('master finished sending; succeses=%d, failures=%d' % (num_successes, num_failures))
print('master finished sending; successes=%d, failures=%d' % (num_successes, num_failures))
def slave():
nrf = NRF24L01(SPI(2), Pin('Y5'), Pin('Y4'), payload_size=8)

View File

@ -142,7 +142,7 @@ class SDCard:
buf[5] = crc
self.spi.write(buf)
# wait for the repsonse (response[7] == 0)
# wait for the response (response[7] == 0)
for i in range(_CMD_TIMEOUT):
response = self.spi.read(1, 0xff)[0]
if not (response & 0x80):