Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding USB Support for dive computers #2

Merged
merged 34 commits into from
Feb 28, 2024

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 🚀

example/macos/Runner/Info.plist Outdated Show resolved Hide resolved
macos/Classes/hid.c Outdated Show resolved Hide resolved
@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

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?

pubspec.yaml Outdated Show resolved Hide resolved
pubspec.yaml Outdated Show resolved Hide resolved
@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
1 check failed
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