Skip to content

Commit

Permalink
small fixes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Dec 7, 2014
1 parent ef6acb9 commit e763895
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 @@ -25,7 +25,7 @@ As Python does not support call by reference for primitive types some of the lib
chip_name, nr = sensors.get_detected_chips(None, nr)

# returns the value. throws on error
val = get_value(chip, subfeature_nr)
val = sensors.get_value(chip, subfeature_nr)
```

Missing Features (pull requests are welcome):
Expand Down
2 changes: 1 addition & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def print_feature(chip, feature):
print("\t"+label+"\t"+status)
return

names = [sf.name.decode("utf-8")[skipname:] for sf in sfs]
names = [sf.name[skipname:].decode("utf-8") for sf in sfs]
data = list(zip(names, vals))

str_data = ", ".join([e[0]+": "+str(e[1]) for e in data])
Expand Down

0 comments on commit e763895

Please sign in to comment.