feat(deploy-tab): auto-reset Arduino when starting serial monitor
This commit is contained in:
parent
bb113e6ff2
commit
f6b57c08d1
|
|
@ -146,6 +146,10 @@
|
|||
if (!deployer || !isPaired) return;
|
||||
|
||||
try {
|
||||
// Auto-reset Arduino before opening serial monitor
|
||||
console.log('[DEPLOY] Auto-resetting Arduino before serial monitor...');
|
||||
await deployer.resetArduino();
|
||||
|
||||
if (serialPendingBaud !== null) {
|
||||
await deployer.setBaudRate(serialPendingBaud);
|
||||
baudRate = serialPendingBaud;
|
||||
|
|
|
|||
Loading…
Reference in New Issue