viacuda: Further fixing set real time

This commit is contained in:
dingusdev 2021-02-23 19:59:22 -07:00
parent 0ff4fe3cd6
commit a5a2a12df4
2 changed files with 5 additions and 5 deletions

View File

@ -329,10 +329,10 @@ void ViaCuda::pseudo_command(int cmd, int data_count) {
break;
case CUDA_SET_REAL_TIME:
response_header(CUDA_PKT_PSEUDO, 0);
this->real_time = in_buf[2] >> 24;
this->real_time += in_buf[3] >> 16;
this->real_time += in_buf[4] >> 8;
this->real_time += in_buf[5];
this->real_time = ((uint32_t)in_buf[2]) >> 24;
this->real_time += ((uint32_t)in_buf[3]) >> 16;
this->real_time += ((uint32_t)in_buf[4]) >> 8;
this->real_time += ((uint32_t)in_buf[5]);
break;
case CUDA_WRITE_PRAM:
response_header(CUDA_PKT_PSEUDO, 0);

View File

@ -135,7 +135,7 @@ private:
int32_t out_count;
int32_t out_pos;
uint8_t poll_rate;
int32_t real_time;
int32_t real_time = 0;
bool file_server;
bool is_open_ended;