Skip to content

Commit 8dc6f51

Browse files
author
Mike Simpson
committed
Updated version numbers and licence
1 parent 2d803a5 commit 8dc6f51

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

AsyncSerial.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#region Licence
22
//MIT License(MIT)
33

4-
/* AsyncSerial.cs Version 4.3 */
4+
/* AsyncSerial.cs Version 4.3.0 */
55

6-
/* Copyright(c) 2015 Mike Simpson */
6+
/* Copyright(c) 2018 Mike Simpson */
77

88
//Permission is hereby granted, free of charge, to any person obtaining a copy
99
//of this software and associated documentation files (the "Software"), to deal
@@ -385,7 +385,7 @@ private void port_OnDataRecived(object sender, SerialDataReceivedEventArgs e)
385385
{
386386
int lengthToRead = dotNETPort.BytesToRead;
387387
byte[] rxBytes = new byte[lengthToRead];
388-
dotNETPort.Read(rxBytes, 0, lengthToRead);
388+
dotNETPort.Read(rxBytes, 0, lengthToRead);
389389
OnPacketReceived(rxBytes);
390390
}
391391

@@ -437,7 +437,7 @@ public PacketEventArgs(byte[] inPacket)
437437
#region PortParameters
438438

439439
/// <summary>
440-
/// Provides string arrays containing common (or enforced) port parameters which you can use to populate menus in foreach loops etc
440+
/// Provides string arrays containing common (or enforced) port parameters which you can use to populate menus in foreach loops etc
441441
/// ReadOnlyCollections can be cast to a array using .ToArray()
442442
/// </summary>
443443
public static class SerialPortParameters
@@ -458,7 +458,7 @@ public static class SerialPortParameters
458458

459459
/// <summary>
460460
/// Commonly used serial baud rates, system dependant but usually produced by a 1.843200MHz oscillator
461-
/// </summary>
461+
/// </summary>
462462
public static ReadOnlyCollection<string> BaudRates
463463
{
464464
get
@@ -619,4 +619,4 @@ public static ReadOnlyCollection<string> GetSerialPorts
619619
//}
620620

621621
#endregion
622-
}
622+
}

CertToHex.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
#MIT License(MIT)
2+
3+
# CertToHex.py Version 1.0.0 #
4+
5+
# Copyright(c) 2018 Mike Simpson #
6+
7+
#Permission is hereby granted, free of charge, to any person obtaining a copy
8+
#of this software and associated documentation files (the "Software"), to deal
9+
#in the Software without restriction, including without limitation the rights
10+
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
#copies of the Software, and to permit persons to whom the Software is
12+
#furnished to do so, subject to the following conditions:
13+
14+
#The above copyright notice and this permission notice shall be included in all
15+
#copies or substantial portions of the Software.
16+
17+
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
#SOFTWARE.
24+
125
import binascii
226
filename = 'Path\\To\\File\\Cert.der'
327
with open(filename, 'rb') as f:
@@ -18,4 +42,4 @@
1842
outString = outString[:-2] #remove last comma and space
1943

2044
print(outString)
21-
print('Cert length = ' + str(caCertLen))
45+
print('Cert length = ' + str(caCertLen))

0 commit comments

Comments
 (0)