Skip to content

Commit f570cd2

Browse files
committed
That didn't compile
1 parent 0599ce4 commit f570cd2

File tree

6 files changed

+3
-15
lines changed

6 files changed

+3
-15
lines changed

src/System.Device.Gpio.Tests/LibGpiodV1DriverTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Device.Gpio.Drivers;
5-
using System.Device.Gpio.Drivers.Libgpiod;
6-
using System.Device.Gpio.Drivers.Libgpiod.V1;
7-
using System.Device.Gpio.System.Device.Gpio.Drivers.Libgpiod.V1;
85
using System.Diagnostics;
96
using System.Threading;
107
using Xunit;
@@ -24,7 +21,7 @@ public LibGpiodV1DriverTests(ITestOutputHelper testOutputHelper)
2421
{
2522
}
2623

27-
protected override GpioDriver GetTestDriver() => new LibGpiodV1Driver(0);
24+
protected override GpioDriver GetTestDriver() => new LibGpiodDriver(0);
2825

2926
[Fact]
3027
public void SetPinModeSetsDefaultValue()

src/System.Device.Gpio.Tests/LibGpiodV2DriverTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Device.Gpio.Drivers;
5-
using System.Device.Gpio.System.Device.Gpio.Drivers.Libgpiod;
6-
using System.Diagnostics;
7-
using System.Threading.Tasks;
85
using Xunit;
96
using Xunit.Abstractions;
107

src/System.Device.Gpio/System/Device/Gpio/Drivers/RaspberryPi3LinuxDriver.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Buffers.Binary;
5-
using System.Device.Gpio.Drivers.Libgpiod;
6-
using System.Device.Gpio.Drivers.Libgpiod.V1;
75
using System.Diagnostics;
86
using System.IO;
97
using System.Runtime.CompilerServices;

src/System.Device.Gpio/System/Device/Gpio/Drivers/Translator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public static bool Includes(GpiodLineEdge presentEdgeDetection, PinEventTypes pi
9494
return false;
9595
}
9696

97-
return pinEventTypes == PinEventTypes.Rising && presentEdgeDetection == GpiodLineEdge.Rising ||
98-
pinEventTypes == PinEventTypes.Falling && presentEdgeDetection == GpiodLineEdge.Falling;
97+
return (pinEventTypes == PinEventTypes.Rising && presentEdgeDetection == GpiodLineEdge.Rising) ||
98+
(pinEventTypes == PinEventTypes.Falling && presentEdgeDetection == GpiodLineEdge.Falling);
9999
}
100100

101101
public static PinEventTypes Translate(GpiodEdgeEventType gpiodEdgeEventType)

src/System.Device.Gpio/System/Device/Gpio/Drivers/UnixDriver.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Device.Gpio.Drivers.Libgpiod;
5-
using System.Device.Gpio.Drivers.Libgpiod.V2;
6-
using System.Device.Gpio.System.Device.Gpio.Drivers.Libgpiod.V1;
74
using System.Diagnostics.CodeAnalysis;
85

96
namespace System.Device.Gpio.Drivers;

src/System.Device.Gpio/System/Device/Gpio/GpioController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System.Collections.Concurrent;
55
using System.Collections.Generic;
66
using System.Device.Gpio.Drivers;
7-
using System.Device.Gpio.Drivers.Libgpiod;
87
using System.Linq;
98
using System.Threading;
109
using System.Threading.Tasks;

0 commit comments

Comments
 (0)