Skip to content

Add support for VN8900 xlGetChannelTime function#733

Merged
christiansandberg merged 3 commits into
hardbyte:developfrom
danielhrisca:develop
Dec 2, 2019
Merged

Add support for VN8900 xlGetChannelTime function#733
christiansandberg merged 3 commits into
hardbyte:developfrom
danielhrisca:develop

Conversation

@danielhrisca
Copy link
Copy Markdown
Contributor

@danielhrisca danielhrisca commented Dec 2, 2019

Fixes #732

Comment thread can/interfaces/vector/canlib.py Outdated
try:
xldriver.xlGetSyncTime(self.port_handle, offset)
except:
xldriver.xlGetChannelTime(self.port_handle, self.mask, offset)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could another level of try except so if both fails we can set self._time_offset = 0 since it is not required to have absolute timestamps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 2, 2019

Codecov Report

Merging #733 into develop will decrease coverage by 0.04%.
The diff coverage is 33.33%.

@@             Coverage Diff             @@
##           develop     #733      +/-   ##
===========================================
- Coverage    68.57%   68.52%   -0.05%     
===========================================
  Files           69       69              
  Lines         6227     6234       +7     
===========================================
+ Hits          4270     4272       +2     
- Misses        1957     1962       +5

Copy link
Copy Markdown
Collaborator

@christiansandberg christiansandberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just run black on xldriver.py to format it.

@danielhrisca
Copy link
Copy Markdown
Contributor Author

@christiansandberg

I think it's ready

@christiansandberg christiansandberg merged commit f342c1c into hardbyte:develop Dec 2, 2019
@felixdivo felixdivo changed the title fixes #732: add support for VN8900 xlGetChannelTime function Add support for VN8900 xlGetChannelTime function Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XL_ERR_NOT_IMPLEMENTED when calling xlGetSyncTime on VN8900

2 participants