Viva la revolucion

This commit is contained in:
Philippe Teuwen 2019-04-17 21:30:01 +02:00
commit be15ad7fec
53 changed files with 861 additions and 870 deletions

View file

@ -46,14 +46,14 @@ static int topaz_send_cmd_raw(uint8_t *cmd, uint8_t len, uint8_t *response) {
memcpy(c.d.asBytes, cmd, len);
SendCommand(&c);
UsbCommand resp;
UsbReplyNG resp;
WaitForResponse(CMD_ACK, &resp);
if (resp.arg[0] > 0) {
memcpy(response, resp.d.asBytes, resp.arg[0]);
if (resp.core.old.arg[0] > 0) {
memcpy(response, resp.core.old.d.asBytes, resp.core.old.arg[0]);
}
return resp.arg[0];
return resp.core.old.arg[0];
}