coding conventions

This commit is contained in:
sam
2023-10-18 16:25:52 +02:00
parent ba6b829498
commit c7ea4f75c7

View File

@@ -90,16 +90,16 @@ async function readLoop() {
} }
} }
// Close the port // Sluit de poort
async function disconnect() { async function disconnect() {
await reader.cancel(); await reader.cancel();
await port.close(); await port.close();
console.log("Port is closed!"); console.log("Port is closed!");
} }
//plotly grafiek
function plotly(graph, array){ function plotly(graph, dataArray){
Plotly.newPlot(graph, [{ Plotly.newPlot(graph, [{
y: array, y: dataArray,
mode: 'lines', mode: 'lines',
line: {color: '#80CAF6'} line: {color: '#80CAF6'}
}]); }]);