 // SRDP channel to communicate with host
 //
 srdp_channel_t channel;
-  
+
+
+// Here we track which registers are watched by the host
+// When bit N is set, the host watched register N.
+//
+int watched = 0;
+
 
 // Transport reader function used by the SRDP channel
 //

         //
         case IDX_REG_LED3:
            if (pos == 0 && len == 3) {
               led3.write(data[0], data[1], data[2]);
               return len;
            } else {
               return SRDP_ERR_INVALID_REG_POSLEN;
            }
         default:
            return SRDP_ERR_NO_SUCH_REGISTER;
      }

}


// Arduino setup function executed once after reset
//
void setup() {
