File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,9 @@ def decode(self, _):
102
102
raise RuntimeError (self .BADADDR )
103
103
addr |= val & 0xFF00 # pass assumed 16 bit address to callback
104
104
self ._addr = addr
105
+ self ._cmd = cmd
105
106
except RuntimeError as e :
106
- cmd = e .args [0 ]
107
+ cmd = self . _cmd if e .args [0 ] == self . REPEAT else - 1
107
108
addr = self ._addr if cmd == self .REPEAT else 0 # REPEAT uses last address
108
109
# Set up for new data burst and run user callback
109
110
self .do_callback (cmd , addr , 0 , self .REPEAT )
Original file line number Diff line number Diff line change 6
6
M5 .BOARD .M5AtomS3 : (None , 4 ),
7
7
M5 .BOARD .M5AtomS3Lite : (None , 4 ),
8
8
M5 .BOARD .M5AtomS3U : (None , 12 ),
9
+ M5 .BOARD .M5Capsule : (None , 4 ),
10
+ M5 .BOARD .M5Cardputer : (None , 44 ),
11
+ M5 .BOARD .M5StickCPlus : (None , 9 ),
12
+ M5 .BOARD .M5StickC : (None , 9 ),
13
+ M5 .BOARD .M5StickCPlus2 : (None , 19 ),
14
+ M5 .BOARD .M5AtomU : (None , 12 ),
9
15
}
10
16
11
17
You can’t perform that action at this time.
0 commit comments