Skip to content

Commit 0eda8df

Browse files
authored
Merge pull request ondryaso#22 from LudwigKnuepfer/pr/typos
Fix some typos
2 parents 282f617 + 5e60006 commit 0eda8df

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ __NOTE:__ For RPi A+/B+/2/3 with 40 pin connector, SPI1/2 is available on top of
4343
The library is split to two classes - **RFID** and **RFIDUtil**. You can use only RFID, RFIDUtil just makes life a little bit better.
4444
You basically want to start with *while True* loop and "poll" the tag state. That's done using *request* method. Most of the methods
4545
return error state, which is simple boolean - True is error, False is not error. The *request* method returns True if tag is **not**
46-
present. If request is successful, you should call *anticoll* method. It runs anti-collision alghoritms and returns used tag UID, which
46+
present. If request is successful, you should call *anticoll* method. It runs anti-collision algorithms and returns used tag UID, which
4747
you'll use for *select_tag* method. Now you can do whatever you want. Important methods are documented. You can also look at the Read and KeyChange examples for RFIDUtil usage.
4848

4949
```python

pirc522/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def stop_crypto(self):
282282
self.authed = False
283283

284284
def halt(self):
285-
"""Swich state to HALT"""
285+
"""Switch state to HALT"""
286286

287287
buf = []
288288
buf.append(self.act_end)
@@ -361,4 +361,4 @@ def util(self):
361361
from .util import RFIDUtil
362362
return RFIDUtil(self)
363363
except ImportError:
364-
return None
364+
return None

pirc522/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def block_addr(self, sector, block):
1919

2020
def sector_string(self, block_address):
2121
"""
22-
Returns sector and it's block representation of block address, eg.
22+
Returns sector and it's block representation of block address, e.g.
2323
S01B03 for sector trailer in second sector.
2424
"""
2525
return "S" + str((block_address - (block_address % 4)) / 4) + "B" + str(block_address % 4)

0 commit comments

Comments
 (0)