souliss / soulissapp

SoulissApp is an Android Application for Souliss Framework
https://play.google.com/store/apps/details?id=it.angelic.soulissclient
MIT License
33 stars 33 forks source link

Toast "Unsupported Command" #90

Closed plinioseniore closed 8 years ago

plinioseniore commented 9 years ago

Starting from commit 7db15711e, the node can return functional code 0x83 to notify an error with a command. Display a toast with "Unsupported Command" when this frame is received.

shineangelic commented 9 years ago

0x83 won't fit in a byte, I don't know if using an int would do...

plinioseniore commented 9 years ago

A byte is up to 0xFF :)

shineangelic commented 9 years ago

not in Java, where Byte is signed. Could we "lower" the functional code?

plinioseniore commented 9 years ago

Java sucks?

Use -0x3 it has same binary value of 0x83.

Dario.

From Mobile.