Explorar el Código

Fix compiler warnings

main
PaulStoffregen hace 4 años
padre
commit
d4f82a57f8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      adk.cpp

+ 2
- 2
adk.cpp Ver fichero

@@ -226,7 +226,7 @@ bool ADK::claim(Device_t *dev, int type, const uint8_t *descriptors, uint32_t le
}
void ADK::sendStr(Device_t *dev, uint8_t index, char *str)
{
strcpy(adkbuf, (unsigned char*)str);
strcpy((char *)adkbuf, str);
mk_setup(adksetup, UHS_ADK_bmREQ_SEND, UHS_ADK_SENDSTR, 0, index, strlen(str));
queue_Control_Transfer(dev, &adksetup, adkbuf, this);
}
@@ -311,7 +311,7 @@ void ADK::rx_data(const Transfer_t *transfer)
uint32_t head = rx_head;
uint8_t *p = (const uint8_t *)transfer->buffer;
uint8_t *p = (uint8_t *)transfer->buffer;
if (p != NULL && len != 0)
{
do

Cargando…
Cancelar
Guardar