From 9b80cf73d34067ae80114b48ce5ddf4d692655ff Mon Sep 17 00:00:00 2001 From: yczpf2019 Date: Sat, 24 Jan 2026 21:30:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(socket):=20=E4=BF=AE=E5=A4=8D=20arduino.upl?= =?UTF-8?q?oad=20=E9=80=BB=E8=BE=91=EF=BC=8C=E5=8F=AA=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=96=87=E4=BB=B6=E4=BE=9B=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E7=83=A7=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/socket.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/common/socket.js b/src/common/socket.js index 84b968a0..a7caf592 100755 --- a/src/common/socket.js +++ b/src/common/socket.js @@ -262,8 +262,16 @@ export default class Socket { error2 && Debug.error(error2); let [error3,] = await to(fsExtra.outputFile(config.path.code, config.code)); error3 && Debug.error(error3); - const [error, result] = await to(shell.upload(config)); - error && Debug.error(error); + const [error, result] = await to(shell.compile(config)); + if (error) { + Debug.error(error); + callback([error, result]); + return; + } + if (result.code === 0) { + const buildPath = config.path.build; + result.files = await Boards.getFiles(config.key, buildPath); + } callback([error, result]); });