message: sdk: Fix segfault in WriteAfeRegister() of local device
  In case length is smaller that the CTRL_PACKET_SIZE, thing would go bad as when substracting from length, it overflows because it is an unsinged type.
  E.g.
  length = 16
  CTRL_PACKET_SIZE=4096
  length -=CTRL_PACKET_SIZE will overflow
diff: @@ -642,14 +642,14 @@ aditof::Status LocalDevice::writeAfeRegisters(const uint16_t *address,
  length *= 2 * sizeof(unsigned short);
  while (length) {
  memset(buf, 0, CTRL_PACKET_SIZE);
  - for (size_t i = 0;
  - i < (length > CTRL_PACKET_SIZE ? CTRL_PACKET_SIZE : length);
  - i += 4) {
  + size_t maxBytesToSend =
  + length > CTRL_PACKET_SIZE ? CTRL_PACKET_SIZE : length;
  + for (size_t i = 0; i < maxBytesToSend; i += 4) {
  *(unsigned short *)(buf + i) = address[sampleCnt];
  *(unsigned short *)(buf + i + 2) = data[sampleCnt];
  sampleCnt++;
  }
  - length -= CTRL_PACKET_SIZE;
  + length -= maxBytesToSend;
  extCtrl.size = 2048 * sizeof(unsigned short);
  extCtrl.p_u16 = (unsigned short *)buf;
  