diff --git a/BACKEND/app/services/line_connection.ts b/BACKEND/app/services/line_connection.ts
index b306ac6..09b3ac6 100644
--- a/BACKEND/app/services/line_connection.ts
+++ b/BACKEND/app/services/line_connection.ts
@@ -521,7 +521,7 @@ export default class LineConnection {
console.log('SPAM Break to line:', this.config.lineNumber)
let count = 0
const escInterval = setInterval(() => {
- if (count >= 100) {
+ if (count >= 10) {
clearInterval(escInterval)
return
}
@@ -540,5 +540,6 @@ export default class LineConnection {
this.writeCommand('end\r\n')
await sleep(500)
this.writeCommand('write memory\r\n')
+ this.writeCommand('\r\n')
}
}
diff --git a/BACKEND/providers/socket_io_provider.ts b/BACKEND/providers/socket_io_provider.ts
index a36d635..ce6a82b 100644
--- a/BACKEND/providers/socket_io_provider.ts
+++ b/BACKEND/providers/socket_io_provider.ts
@@ -168,6 +168,7 @@ export class WebSocketIo {
})
socket.on('set_baud', async (data) => {
+ console.log('Set baud', data)
const lineId = data.lineId
const baud = data.baud
const line = await Line.find(lineId)
diff --git a/FRONTEND/src/components/ButtonAction.tsx b/FRONTEND/src/components/ButtonAction.tsx
index 282268d..4e8a8f5 100644
--- a/FRONTEND/src/components/ButtonAction.tsx
+++ b/FRONTEND/src/components/ButtonAction.tsx
@@ -14,14 +14,17 @@ export const ButtonDPELP = ({
isDisable,
onClick,
selectedLines,
+ className = "",
}: {
socket: Socket | null;
isDisable: boolean;
onClick: () => void;
selectedLines: TLine[];
+ className?: string;
}) => {
return (