disable console log of osc messages and debug set to false

rob
rc 2022-03-05 13:32:05 +01:00
parent 198bbf69cc
commit f0d95ecb9d
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
const express = require('express')
cconsonst express = require('express')
const http = require('http')
const WebSocket = require('ws')
const osc = require('osc')
@ -30,7 +30,7 @@ const include_files = [
const app = express();
const server = http.Server(app);
const DEBUG = true
const DEBUG = false
// Odprti serijski OSC link
let scon = null
@ -62,7 +62,7 @@ function openSerial() {
scon.on('message', msg => {
// Debug incoming osc
if (DEBUG) {
console.log('osc msg', msg)
//console.log('osc msg', msg)
}
sendAll(msg, null, null, osclients)