From 7d6e87a0d35e9b9ea91b00da941f25287122f110 Mon Sep 17 00:00:00 2001 From: dingusdev <52434309+dingusdev@users.noreply.github.com> Date: Fri, 26 Jul 2024 07:31:31 -0700 Subject: [PATCH] Add stub for setting power messages --- devices/common/viacuda.cpp | 3 +++ devices/common/viacuda.h | 1 + 2 files changed, 4 insertions(+) diff --git a/devices/common/viacuda.cpp b/devices/common/viacuda.cpp index 996e802..98ed829 100644 --- a/devices/common/viacuda.cpp +++ b/devices/common/viacuda.cpp @@ -691,6 +691,9 @@ void ViaCuda::pseudo_command() { this->one_sec_mode = this->in_buf[2]; response_header(CUDA_PKT_PSEUDO, 0); break; + case CUDA_SET_POWER_MESSAGES: + response_header(CUDA_PKT_PSEUDO, 0); + break; case CUDA_READ_WRITE_I2C: response_header(CUDA_PKT_PSEUDO, 0); i2c_simple_transaction(this->in_buf[2], &this->in_buf[3], this->in_count - 3); diff --git a/devices/common/viacuda.h b/devices/common/viacuda.h index 4577aa6..62fd018 100644 --- a/devices/common/viacuda.h +++ b/devices/common/viacuda.h @@ -128,6 +128,7 @@ enum { CUDA_SET_DEVICE_LIST = 0x19, /* set device list */ CUDA_GET_DEVICE_LIST = 0x1A, /* get device list */ CUDA_ONE_SECOND_MODE = 0x1B, /* one second interrupt mode */ + CUDA_SET_POWER_MESSAGES = 0x21, /* set power message flag */ CUDA_READ_WRITE_I2C = 0x22, /* read/write I2C device */ CUDA_COMB_FMT_I2C = 0x25, /* combined format I2C transaction */ CUDA_OUT_PB0 = 0x26, /* output one bit to Cuda's PB0 line */