Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
UzixLS committed Feb 27, 2018
1 parent e5aa75b commit 40ba5cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Protocol_TS50.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,26 @@ public string PktTransmitter(string ChangedProperty)
return response;
}

public string PktReceiver(string ReveivedData)
public string PktReceiver(string ReceivedData)
{
string response = "";
if (ReveivedData.StartsWith("IF", StringComparison.Ordinal)) {
if (ReceivedData.StartsWith("IF", StringComparison.Ordinal)) {
response += "IF";
response += String.Format("{0:00000000000}", _radio.RadioFrequency);
response += "0000000000000000";
response += mode2int[_radio.RadioMode];
response += "0000000";
response += EndMarker;
}
if (ReveivedData.StartsWith("FA", StringComparison.Ordinal)) {
if (ReceivedData.StartsWith("FA", StringComparison.Ordinal)) {
long freq;
if (long.TryParse(ReveivedData.Substring(2), out freq)) {
if (long.TryParse(ReceivedData.Substring(2), out freq)) {
_radio.RadioFrequency = freq;
}
}
if (ReveivedData.StartsWith("MD", StringComparison.Ordinal)) {
if (ReceivedData.StartsWith("MD", StringComparison.Ordinal)) {
uint mode;
if (uint.TryParse(ReveivedData.Substring(2), out mode)) {
if (uint.TryParse(ReceivedData.Substring(2), out mode)) {
_radio.RadioMode = int2mode[mode];
}
}
Expand Down

0 comments on commit 40ba5cd

Please sign in to comment.