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

std::runtime_error #1

Open
floatingloud opened this issue Nov 16, 2022 · 1 comment
Open

std::runtime_error #1

floatingloud opened this issue Nov 16, 2022 · 1 comment

Comments

@floatingloud
Copy link

floatingloud commented Nov 16, 2022

Files that call std::runtime_error fail to build because they lack #include <stdexcept>
udev.cpp
udev_device.cpp

@danjperron
Copy link

danjperron commented Mar 17, 2024

Yes you need #include <stdexcept> on udev.cpp and udev_device.cpp but this is in your github https://github.com/zeroping/libudevpp!

I also fix your export problem. When you export a pwm you need to wait to have the pwm created. I just made a small 100ms delay and now it works fine. Maybe I should loop until it pop up on the folder.

So I forked both of your githubs and now my servos work fine with my fixes.
https://github.com/danjperron/sysfspwm and libudevppp

Thanks for your code.
Daniel

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

No branches or pull requests

2 participants