diff --git a/devices/common/viacuda.cpp b/devices/common/viacuda.cpp index f5b31dd..c03c50b 100644 --- a/devices/common/viacuda.cpp +++ b/devices/common/viacuda.cpp @@ -496,7 +496,7 @@ void ViaCuda::process_packet() { for (int i = 0; i < this->in_count; i++) { LOG_F(9, "0x%X ,", this->in_buf[i]); } - pseudo_command(this->in_buf[1], this->in_count - 2); + pseudo_command(); break; default: LOG_F(ERROR, "Cuda: unsupported packet type = %d", this->in_buf[0]); @@ -573,9 +573,10 @@ void ViaCuda::autopoll_handler() { } } -void ViaCuda::pseudo_command(int cmd, int data_count) { +void ViaCuda::pseudo_command() { uint16_t addr; int i; + int cmd = this->in_buf[1]; switch (cmd) { case CUDA_START_STOP_AUTOPOLL: diff --git a/devices/common/viacuda.h b/devices/common/viacuda.h index d0c9f73..a36397c 100644 --- a/devices/common/viacuda.h +++ b/devices/common/viacuda.h @@ -250,7 +250,7 @@ private: void error_response(uint32_t error); void process_packet(); void process_adb_command(); - void pseudo_command(int cmd, int data_count); + void pseudo_command(); uint32_t calc_real_time(); void null_out_handler(void);