Skip to content

Commit

Permalink
reame.md, test2.py: Fixed an error in the sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-hh committed Mar 4, 2017
1 parent a06c984 commit c9567f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def sample(x):
irq_busy = True
if index_put < _BUFFERSIZE:
timestamp[index_put] = ticks_us()
data[index_put] = ads.alert_read()
data[index_put] = ads.read_rev()
index_put += 1
irq_busy = False
Expand Down
2 changes: 1 addition & 1 deletion test2.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def sample(x):
irq_busy = True
if index_put < _BUFFERSIZE:
timestamp[index_put] = ticks_us()
data[index_put] = ads.alert_read()
data[index_put] = ads.read_rev()
index_put += 1
irq_busy = False

Expand Down

0 comments on commit c9567f7

Please sign in to comment.