Repository navigation
PWM fixes from #758 - #876
Conversation
aa6fa02 to
ac9a02d
Compare
|
@Frankenslag any chance you can review since this unifies the permission logic into the PWM as well? |
Frankenslag
left a comment
There was a problem hiding this comment.
I have tested the GPIO side of this and it seems to work fine.
| <ItemGroup Condition="'$(TargetsWindows)' == 'true'"> | ||
| <!--Excluding Linux implementations--> | ||
| <Compile Remove="**\*.Linux.cs" /> | ||
| <Compile Remove="**\*.Unix.cs" /> |
There was a problem hiding this comment.
Why do we need to add the Unix suffix? I would either use the existing Linux one, or move all the Linux stuff to have the Linux suffix but not add a new one. The suffix is meant to represent the target OS platform, and today we still only target Linux and Windows, we don't have a separate target for Unix so I would remove this.
There was a problem hiding this comment.
This file is Unix because it uses Unix specific interop file coming from Unix folder. Just followed convention from Interop. You can use any Unix stuff on any Linux so don't see a problem
There was a problem hiding this comment.
the suffix is not intended to relate to the code used in the file, but instead to show which build configuration will the file be included in, and we just have a Linux and a win build, not a Unix one, so I would change it back to be Linux in order to be consistent and simple.
Fixes #757
Also added waiting after PWM channel is exported in case driver didn't show directory in time (happened at least once during testing)
This is extracting PWM fixes from #758
cc: @pgrawehr @joperezr