Skip to content

Commit c161c52

Browse files
committed
Fix combined.py indentation for Python 3.x
1 parent 47f1b58 commit c161c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/combined.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
level=logging.INFO,
2727
datefmt='%Y-%m-%d %H:%M:%S')
2828

29-
logging.info("""all-in-one.py - Displays readings from all of Enviro plus' sensors
29+
logging.info("""combined.py - Displays readings from all of Enviro plus' sensors
3030
3131
Press Ctrl+C to exit!
3232
@@ -172,7 +172,7 @@ def display_everything():
172172
variable = variables[i]
173173
data_value = values[variable][-1]
174174
unit = units[i]
175-
x = x_offset + ((WIDTH / column_count) * (i / row_count))
175+
x = x_offset + ((WIDTH // column_count) * (i // row_count))
176176
y = y_offset + ((HEIGHT / row_count) * (i % row_count))
177177
message = "{}: {:.1f} {}".format(variable[:4], data_value, unit)
178178
lim = limits[i]

0 commit comments

Comments
 (0)