Browse Source

Fix compiler warnings

main
PaulStoffregen 4 years ago
parent
commit
d4f82a57f8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      adk.cpp

+ 2
- 2
adk.cpp View File

} }
void ADK::sendStr(Device_t *dev, uint8_t index, char *str) 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)); mk_setup(adksetup, UHS_ADK_bmREQ_SEND, UHS_ADK_SENDSTR, 0, index, strlen(str));
queue_Control_Transfer(dev, &adksetup, adkbuf, this); queue_Control_Transfer(dev, &adksetup, adkbuf, this);
} }
uint32_t head = rx_head; 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) if (p != NULL && len != 0)
{ {
do do

Loading…
Cancel
Save