Example #1
0
 void updateAddress16(short address16) {
   synchronized (this) {
     if (address != null && address16 == address.shortValue()) {
       return;
     }
     if (address16 == -2) {
       address = null;
     } else {
       address = new Short(address16);
       newAddress = null;
       sendMessage("ADDRESS");
     }
   }
 }