{"action":"closed","issue":{"url":"https://api.github.com/repos/hardbyte/python-can/issues/146","repository_url":"https://api.github.com/repos/hardbyte/python-can","labels_url":"https://api.github.com/repos/hardbyte/python-can/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/hardbyte/python-can/issues/146/comments","events_url":"https://api.github.com/repos/hardbyte/python-can/issues/146/events","html_url":"https://github.com/hardbyte/python-can/issues/146","id":209370549,"number":146,"title":"modify_data() and then performing a recv() on the same bus will not see the data change.","user":{"login":"altran-git","id":13827822,"avatar_url":"https://avatars1.githubusercontent.com/u/13827822?v=4","gravatar_id":"","url":"https://api.github.com/users/altran-git","html_url":"https://github.com/altran-git","followers_url":"https://api.github.com/users/altran-git/followers","following_url":"https://api.github.com/users/altran-git/following{/other_user}","gists_url":"https://api.github.com/users/altran-git/gists{/gist_id}","starred_url":"https://api.github.com/users/altran-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altran-git/subscriptions","organizations_url":"https://api.github.com/users/altran-git/orgs","repos_url":"https://api.github.com/users/altran-git/repos","events_url":"https://api.github.com/users/altran-git/events{/privacy}","received_events_url":"https://api.github.com/users/altran-git/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-22T07:09:38Z","updated_at":"2018-02-17T09:55:03Z","closed_at":"2018-02-17T09:55:03Z","author_association":"NONE","body":"1. Start a task running cyclic messages on a can interface (vcan0)\r\n    **msg = can.Message(arbitration_id=0x123, data=[0, 0, 0, 0, 0, 0], extended_id=False)**\r\n    **task = can.send_periodic('vcan0', msg, 0.20)**\r\n\r\n2. Instantiate a bus on the same interface as running task\r\n     **bus = can.interface.Bus(bustype='socketcan_native', channel='vcan0')**\r\n\r\n3. Modify data associated with running task on (vcan0)\r\n     **msg.data[0] = 0x99**\r\n     **task.modify_data(msg)**\r\n\r\n4.  Perform a recv() on the bus instantiated in step 2.\r\n      **read_msg = bus.recv()**\r\n\r\nThe read_msg does not see the change performed by the modify task in step 3.  In order for me to see the change, I would have to perform step 2 after step 3.  Any subsequent modify_data calls I will have to reinstantiate a bus and then perform a recv() in order to see the change.\r\n\r\nIs this working as intended?\r\n\r\n"}}
{"actor":{"display_login":"felixdivo"}}