Skip to content

Commit f626d59

Browse files
authored
changed to object
1 parent 5113bc4 commit f626d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TrainSimulator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function TrainSimulator() {
1313
intervalRef.current = setInterval(() => {
1414
//console.log({ speed, throttle, pressure });
1515
const logElement = document.createElement('div');
16-
logElement.innerText = JSON.stringify(data);
16+
logElement.innerText = JSON.stringify({ speed, throttle, pressure });
1717
logRef.current.appendChild(logElement);
1818

1919
}, 1000);

0 commit comments

Comments
 (0)