Skip to content

Commit

Permalink
Update ArduinoSerialCommunication.cs
Browse files Browse the repository at this point in the history
Conditional compilation of Arduino Serial Communication dependent on .NET API Compatibility Level.
  • Loading branch information
williamrjackson authored Jan 28, 2025
1 parent a57e5db commit 40d9252
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ArduinoSerialCommunication.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_STANDALONE_WIN
#if UNITY_STANDALONE_WIN && NET_4_6
using System.IO.Ports;
#endif
using UnityEngine;
Expand All @@ -11,7 +11,7 @@ namespace Wrj
{
public class ArduinoSerialCommunication : MonoBehaviour
{
#if UNITY_STANDALONE_WIN
#if UNITY_STANDALONE_WIN && NET_4_6
[SerializeField]
private BaudRates BaudRate = BaudRates._9600;
[SerializeField]
Expand Down Expand Up @@ -242,4 +242,4 @@ IEnumerator ActionWrapper(Action action)
}
#endif
}
}
}

0 comments on commit 40d9252

Please sign in to comment.