This commit is contained in:
Gustave Monce
2024-03-06 00:42:33 +01:00
parent 53d996fa30
commit 16eb6422e5
+1 -11
View File
@@ -97,9 +97,6 @@ namespace UnifiedFlashingPlatform
public byte[] ReadParam(string Param)
{
//Console.WriteLine();
//Console.WriteLine($"Reading {Param}");
byte[] Request = new byte[0x0B];
string Header = ReadParamSignature; // NOKXFR
@@ -114,9 +111,6 @@ namespace UnifiedFlashingPlatform
byte[] Result = new byte[Response[0x10]];
Buffer.BlockCopy(Response, 0x11, Result, 0, Response[0x10]);
//Console.WriteLine($"Result (as bytes): {BitConverter.ToString(Result).Replace("-", "")}");
return Result;
}
@@ -128,11 +122,7 @@ namespace UnifiedFlashingPlatform
return null;
}
string result = Encoding.ASCII.GetString(Bytes).Trim('\0');
//Console.WriteLine($"Result (fl string): {Encoding.ASCII.GetString(Bytes).Replace("\0", "\\0")}");
//Console.WriteLine($"Result (as string): {result}");
return result;
return Encoding.ASCII.GetString(Bytes).Trim('\0');
}
public enum FlashAppType