We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4dee90 commit 499dbbdCopy full SHA for 499dbbd
tb/i2c.py
@@ -238,17 +238,26 @@ def logic():
238
ack = []
239
yield send_byte(addr << 1 | 0, ack)
240
241
+ if ack[0]:
242
+ print("[%s] No ACK from slave" % name)
243
+
244
for k in range(len(data)):
245
246
yield send_byte(data[k], ack)
247
248
249
250
251
elif cmd[0] == 'r':
252
# read command
253
yield send_start()
254
255
256
yield send_byte(addr << 1 | 1, ack)
257
258
259
260
261
cnt = cmd[2]
262
data = b''
263
0 commit comments