Skip to content
Snippets Groups Projects
Commit 0a9fd456 authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

Back to working

parent 61147f7b
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,8 @@ class I2C:
try:
(count, rd_value) = pi.i2c_read_i2c_block_data(bus, register, bytes_to_read)
ret_value = ''
if len(rd_value) < bytes_to_read:
return False, 999
for cnt in range(bytes_to_read):
ret_value += (hex(rd_value[cnt])[2:])
ret_ack = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment