diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-04-17 03:41:42 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-04-17 03:41:42 +0300 |
commit | 245c07d57f395bae53fc54627a785d8db8bbb865 (patch) | |
tree | e5a197a2667706c7eb091cb950e2fb3dc97e7826 /Clovershell | |
parent | 90b1573694b82da2046476afd9517027d6381a8d (diff) |
Last minor fixes
Diffstat (limited to 'Clovershell')
-rw-r--r-- | Clovershell/ClovershellConnection.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Clovershell/ClovershellConnection.cs b/Clovershell/ClovershellConnection.cs index 682333f7..1ca67883 100644 --- a/Clovershell/ClovershellConnection.cs +++ b/Clovershell/ClovershellConnection.cs @@ -379,16 +379,16 @@ namespace com.clusterrr.clovershell buff[1] = 0;
buff[2] = 0;
buff[3] = 0;
- epWriter.Write(buff, 0, buff.Length, 1000, out tLen);
+ var r = epWriter.Write(buff, 0, buff.Length, 1000, out tLen);
if (tLen != buff.Length)
- throw new ClovershellException("kill all shell: write error");
+ throw new ClovershellException("kill all shell: write error - " + r.ToString());
buff[0] = (byte)ClovershellCommand.CMD_EXEC_KILL_ALL;
buff[1] = 0;
buff[2] = 0;
buff[3] = 0;
- epWriter.Write(buff, 0, buff.Length, 1000, out tLen);
+ r= epWriter.Write(buff, 0, buff.Length, 1000, out tLen);
if (tLen != buff.Length)
- throw new ClovershellException("kill all exec: write error");
+ throw new ClovershellException("kill all exec: write error - "+r.ToString());
}
internal void writeUsb(ClovershellCommand cmd, byte arg, byte[] data = null, int pos = 0, int l = -1)
|