Skip to content

Commit

Permalink
Merge pull request #187 from choiyoubin/test
Browse files Browse the repository at this point in the history
Fix/콘솔확인
  • Loading branch information
choiyoubin authored Mar 22, 2024
2 parents f6f9a49 + 87789e6 commit f56e828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/usePrintHandler.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { HomeContext } from "../pages/OrderManage/Home";
const usePrintHandler = () => {
const context = useContext(HomeContext);
const selectedInfo = context.selectedMenu;
console.log(selectedInfo);
// const [savePort, setSavePort] = useRecoilState(portState);
const [savePort, setSavePort] = useState(null);

Expand All @@ -22,6 +23,7 @@ const usePrintHandler = () => {
port = savePort;
}

console.log(port);
if (port.writable === null) {
await port.open({ baudRate: 38400 });
}
Expand Down

0 comments on commit f56e828

Please sign in to comment.