Skip to content

Commit

Permalink
fix display issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lsongdev committed Sep 12, 2018
1 parent ffef66e commit 3db0200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

*.log
.DS_Store

node_modules/
2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const hc = new HCHO("/dev/cu.SLAB_USBtoUART");

hc.on('message', message => {
const { VALUE, VH } = message;
console.log('HCHO: %smg/m3', (VALUE / VH).toFixed(2));
console.log('HCHO: %smg/m3', (VALUE / 10**VH).toFixed(2));
});

hc.on("open", () => {
Expand Down

0 comments on commit 3db0200

Please sign in to comment.