Skip to content

Commit df08b36

Browse files
committed
Fixes
1 parent 8941118 commit df08b36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

System.Device.Pwm/PwmChannel.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ public sealed class PwmChannel : IDisposable
1717
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
1818
private uint _dutyCycle;
1919

20+
#pragma warning disable 0414
2021
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
2122
private PwmPulsePolarity _polarity;
22-
23+
#pragma warning restore 0414
24+
2325
[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
2426
private int _pinNumber;
2527

@@ -165,7 +167,7 @@ public void Dispose()
165167
#region external calls to native implementations
166168

167169
[MethodImpl(MethodImplOptions.InternalCall)]
168-
private extern bool NativeInit();
170+
private extern void NativeInit();
169171

170172
[MethodImpl(MethodImplOptions.InternalCall)]
171173
private extern uint NativeSetDesiredFrequency(uint desiredFrequency);

0 commit comments

Comments
 (0)