File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,16 +90,16 @@ def test_expedited_upload(self):
9090
9191 # UNSIGNED8 without padded data part (see issue #5)
9292 self .data = [
93- (TX , b'\x40 \x00 \x14 \x02 \x00 \x00 \x00 \x00 ' ),
94- (RX , b'\x4f \x00 \x14 \x02 \xfe ' )
93+ (TX , b'\x40 \x00 \x14 \x02 \x00 \x00 \x00 \x00 ' ), # SDO upload 0x1400:02
94+ (RX , b'\x4f \x00 \x14 \x02 \xfe ' ), # expedited, size=1
9595 ]
9696 trans_type = self .network [2 ].sdo [0x1400 ]['Transmission type RPDO 1' ].raw
9797 self .assertEqual (trans_type , 254 )
9898
9999 # Same with padding to a full SDO frame
100100 self .data = [
101- (TX , b'\x40 \x00 \x14 \x02 \x00 \x00 \x00 \x00 ' ),
102- (RX , b'\x42 \x00 \x14 \x02 \xfe \x00 \x00 \x00 ' )
101+ (TX , b'\x40 \x00 \x14 \x02 \x00 \x00 \x00 \x00 ' ), # SDO upload 0x1400:02
102+ (RX , b'\x42 \x00 \x14 \x02 \xfe \x00 \x00 \x00 ' ), # expedited, no size indicated
103103 ]
104104 trans_type = self .network [2 ].sdo [0x1400 ]['Transmission type RPDO 1' ].raw
105105 self .assertEqual (trans_type , 254 )
You can’t perform that action at this time.
0 commit comments