I also found the style of the code quite antiquated, without any wish to change that. But that's my taste.
So, in the end, my work on that driver felt wasted.
I also found the style of the code quite antiquated, without any wish to change that. But that's my taste.
So, in the end, my work on that driver felt wasted.
Having said that, you did eventually get a ton of comments, by a trusted and well-respected contributor (wsa), but I guess you'd already given up by then, so didn't respond.
How about this: make the changes requested, and I'll personally take on further review and/or approval. I'm the original author of the OLS driver, and of course I have the hardware, so that's as good an opportunity to get your code in as you'll get.
I found the OLS, especially with the Demon Core, a really neat piece of hardware.
You don't send a huge patch to a project as a first time contributor.
I am sure sigrok would benefit from your improvements, but sometimes the maintainer has a busy life outside the project so you need to adapt to their pace, at least in the beginning.
I think a lot of people forget that changesets are sometimes not the most straightforward way to express ideas. They (including myself) also forget that while you are working with a change in front of you it's obvious but in one month it could be opaque. A maintainer is often giving you the perspective of you a month later who built on this system you changed.
That's fine - the driver would improve if the contributions are accepted, and they don't touch core code that will break other things. But instead totally non-functional drivers are left languishing because PRs aren't merged.
In the case of Sigrok the problem didn't seem so much the maintainers, but rather non-developers "triaging" PRs with unhelpful advice to split patches, when a lack of actual developers meant they'd never be looked at anyway. Otherwise a fork might have occurred rather than wasting everyone's time.
Although that’s a good guideline, it’s not true in absolute terms. Sometimes the contribution is a big patch!
Sometimes, when the changes are too big to make a decision by code review alone, we need to rely on user feedback. Unfortunately, this is always a challenge as there aren't a lot of users around who are willing to test changes.
I hope to improve the situation by allowing the CI/CD pipeline to provide binaries for PRs so users don't have to build from source.
Either way, your efforts aren't wasted and I appreciate anyone wanting to help out.
There are a lot of pending changes that I simply cannot review or verify easily since I don't have the hardware the driver is written for. Asking for help has never really been met with much enthusiasm, unfortunately.
Either way, I'll get to these as soon as I can and help is definitely welcome.