From e763895c2da2ba142da607725401e52adda04528 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sun, 7 Dec 2014 13:55:43 +0100 Subject: [PATCH] small fixes in examples --- README.md | 2 +- example.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1068be3..b5cba76 100644 --- a/README.md +++ b/README.md @@ -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): diff --git a/example.py b/example.py index dd1cfaf..7886f31 100755 --- a/example.py +++ b/example.py @@ -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])