Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Jul 8, 2024
1 parent a28a34c commit 4ec30e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
async def main() -> None:
url = TargetURI("flexray://?slot_id=0x42")
tp = await RawFlexrayTransport.connect(url, None)
data = await tp.read()
print(data)
await tp.write(b"affe")


if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions src/gallia/transports/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ async def write(

event.tagData.frTxFrame.data = ctypes.create_string_buffer(data, len(data))

print("writing")
await asyncio.to_thread(
vector_ctypes.xlFrTransmit(
self.port_handle,
Expand Down

0 comments on commit 4ec30e5

Please sign in to comment.