src/arrow/software_release.c
int arrow_software_release_payload_handler(void *r,
                                           property_t payload) {
  http_response_t *res = (http_response_t *)r;
  int flag = FW_FIRST;
  if ( __payload ) {
      wdt_feed();
      if ( ! res->processed_payload_chunk ) {
          md5_chunk_init();
      } else
          flag |= FW_NEXT;
      md5_chunk(payload.value, property_size(&payload));
      return __payload(payload.value, property_size(&payload), flag);
  }
  return -1;
}
// this is a special payload handler for the OTA
this is a special payload handler for the OTA
this is a special payload handler for the OTA
int arrow_software_release_payload_handler(void *r,
                                           property_t payload) {
  http_response_t *res = (http_response_t *)r;
  int flag = FW_FIRST;
  if ( __payload ) {
      wdt_feed();
      if ( ! res->processed_payload_chunk ) {
          md5_chunk_init();
      } else
          flag |= FW_NEXT;
      md5_chunk(payload.value, property_size(&payload));
      return __payload(payload.value, property_size(&payload), flag);
  }
  return -1;
}
int arrow_software_release_payload_handler ( void * r , property_t payload ) { http_response_t * res = ( http_response_t * ) r ; int flag = FW_FIRST ; if ( __payload ) { wdt_feed ( ) ; if ( ! res -> processed_payload_chunk ) { md5_chunk_init ( ) ; } else flag |= FW_NEXT ; md5_chunk ( payload . value , property_size ( & payload ) ) ; return __payload ( payload . value , property_size ( & payload ) , flag ) ; } return -1 ; }
this is a special payload handler for the OTA
this is a special payload handler for the OTA