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