Skip to content

Comments

Adding USB Support for dive computers#2

Merged
Sese-Schneider merged 34 commits intoDiveNote:developfrom
Ben1980:usb-support
Feb 28, 2024
Merged

Adding USB Support for dive computers#2
Sese-Schneider merged 34 commits intoDiveNote:developfrom
Ben1980:usb-support

Conversation

@Ben1980
Copy link

@Ben1980 Ben1980 commented Jan 29, 2024

Provides USB and USB HID support for macOS.
All dependencies come via git submodules and are built during example compilation time.
Logging is also now working but needs a review.
I was only able to confirm USB HID working with Suunto EON Core, can't say if USB is working but I guess it is.

@Ben1980

This comment was marked as resolved.

@Ben1980 Ben1980 marked this pull request as ready for review February 14, 2024 18:47
Copy link
Member

@Sese-Schneider Sese-Schneider left a comment

Choose a reason for hiding this comment

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

Some small things you could optimize.
In general I love this! Great work and thank you so much 🚀

@Sese-Schneider Sese-Schneider self-assigned this Feb 15, 2024
@Sese-Schneider Sese-Schneider added the enhancement New feature or request label Feb 15, 2024
Copy link
Member

@Sese-Schneider Sese-Schneider left a comment

Choose a reason for hiding this comment

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

Had to leave for work, here's my finalized review

set_target_properties(libdivecomputer PROPERTIES
PUBLIC_HEADER dive_computer.h
OUTPUT_NAME "dive_computer"
OUTPUT_NAME "libdivecomputer"
Copy link
Member

Choose a reason for hiding this comment

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

Why does the output name need to be libdivecomputer?

Comment on lines +52 to +54
# add_compile_definitions(__APPLE__=1)
# add_compile_definitions(HAVE_HIDAPI=1)
# add_compile_definitions(HAVE_PTHREAD_H=1)
Copy link
Member

Choose a reason for hiding this comment

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

Can this be removed?

@Ben1980
Copy link
Author

Ben1980 commented Feb 20, 2024

@Sese-Schneider I think we should discuss if this PR can be merged or how changes should look like. Shall we have a call?

@Sese-Schneider
Copy link
Member

@Ben1980 PR looks very good so far - I want to test it myself after the weekend and merge it ASAP.
I also want to give Windows another try later.
Nevertheless, I try to get it to main and publish this version hopefully soon.
If I have more questions we can call, or if you want to anyways to talk about it send me an invite please 👍🏼

@Sese-Schneider
Copy link
Member

merging to develop - windows is still not working so this would be my next step to get it to main.
I will publish this as v0.1.0-dev.1

@Sese-Schneider Sese-Schneider merged commit 13b5dd1 into DiveNote:develop Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants