OnosTeam / onos

onos
http://myonos.com
2 stars 0 forks source link

A volte il log in /var/log/syslog non è leggibile #53

Open onosAdmin opened 7 years ago

onosAdmin commented 7 years ago

A volte il log in /var/log/syslog non è leggibile perchè ci sono dei caratteri non ascii ,che manda arduino sulla seriale.

onosAdmin commented 7 years ago

Tolte le linee : if len(buf)>0:
logprint(buf)

modificate linee:

        else: #cmd not found
          tmp_buf=buf.decode("utf8","replace")
          tmp_buf.encode("ascii","replace")

Da arduinoserial.py Da verificare se il problema è risolto