mirror of
https://github.com/xodio/xod.git
synced 2026-03-15 05:06:59 +01:00
tweak(xod-client-electron): make sending data to debug serial a bit safer
This commit is contained in:
@@ -240,7 +240,8 @@ const onReady = () => {
|
||||
)
|
||||
);
|
||||
ipcMain.on(EVENTS.DEBUG_SERIAL_SEND, (event, str) => {
|
||||
if (!debugPort) return;
|
||||
if (!debugPort || !debugPort.write) return;
|
||||
|
||||
debugPort.write(str);
|
||||
});
|
||||
ipcMain.on(EVENTS.STOP_DEBUG_SESSION, stopDebugSession);
|
||||
|
||||
Reference in New Issue
Block a user