Add message to assertion

This commit is contained in:
Lightos1
2026-03-21 17:03:46 +01:00
parent 3d5147a6e2
commit a697cac43c

View File

@@ -254,7 +254,7 @@ namespace board {
void PcvHijackGpuVolts(u32 vmin) {
u32 table[192];
static_assert(sizeof(table) == sizeof(voltData.voltTable));
static_assert(sizeof(table) == sizeof(voltData.voltTable), "Invalid gpu voltage table size!");
std::memcpy(table, voltData.voltTable, sizeof(voltData.voltTable));
if (voltData.ramVmin == vmin) {