Le-clan-des-Semi-Croustillant_SRSP-Race-Manager/RaceManager/DataProcessing/NMEA-V1/NmeaWrite/NmeaMessageWriter.cs
namespace RaceManager.DataProcessing.NMEA.NmeaWrite
{
    public class NmeaMessageWriter
    {
        public static string Checksum(string trame)
        {
            int checksumTest = 0;
            for (int i = 1; i < trame.Length; i++)
            {
                var c = trame[i];
                checksumTest ^= Convert.ToByte(c);
            }
            return checksumTest.ToString("X2");
        }

    }


}
