mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Catching Throwable instead of IOException in an attempt to catch unknown "type mismatch error" on windows8
This commit is contained in:
@ -232,7 +232,7 @@ public class Platform extends processing.app.Platform {
|
|||||||
CommandLine toDevicePath = CommandLine.parse("/usr/sbin/system_profiler SPUSBDataType");
|
CommandLine toDevicePath = CommandLine.parse("/usr/sbin/system_profiler SPUSBDataType");
|
||||||
executor.execute(toDevicePath);
|
executor.execute(toDevicePath);
|
||||||
return new String(baos.toByteArray());
|
return new String(baos.toByteArray());
|
||||||
} catch (IOException e) {
|
} catch (Throwable e) {
|
||||||
return super.preListAllCandidateDevices();
|
return super.preListAllCandidateDevices();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -345,7 +345,7 @@ public class Platform extends processing.app.Platform {
|
|||||||
CommandLine toDevicePath = CommandLine.parse(listComPorts);
|
CommandLine toDevicePath = CommandLine.parse(listComPorts);
|
||||||
executor.execute(toDevicePath);
|
executor.execute(toDevicePath);
|
||||||
return new String(baos.toByteArray());
|
return new String(baos.toByteArray());
|
||||||
} catch (IOException e) {
|
} catch (Throwable e) {
|
||||||
return super.preListAllCandidateDevices();
|
return super.preListAllCandidateDevices();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user