micro mode: fix padding
This commit is contained in:
@@ -232,6 +232,7 @@ uint8_t refreshRate = 0;
|
|||||||
//Read real temps from sys-clk sysmodule
|
//Read real temps from sys-clk sysmodule
|
||||||
int32_t realCPU_Temp = 0;
|
int32_t realCPU_Temp = 0;
|
||||||
int32_t realGPU_Temp = 0;
|
int32_t realGPU_Temp = 0;
|
||||||
|
u32 realPLLX_Temp = 0;
|
||||||
int32_t realRAM_Temp = 0;
|
int32_t realRAM_Temp = 0;
|
||||||
|
|
||||||
int compare (const void* elem1, const void* elem2) {
|
int compare (const void* elem1, const void* elem2) {
|
||||||
@@ -585,6 +586,7 @@ void Misc(void*) {
|
|||||||
partLoad[HocClkPartLoad_EMCCpu] = hocclkCTX.partLoad[HocClkPartLoad_EMCCpu];
|
partLoad[HocClkPartLoad_EMCCpu] = hocclkCTX.partLoad[HocClkPartLoad_EMCCpu];
|
||||||
realCPU_Temp = hocclkCTX.temps[HocClkThermalSensor_CPU];
|
realCPU_Temp = hocclkCTX.temps[HocClkThermalSensor_CPU];
|
||||||
realGPU_Temp = hocclkCTX.temps[HocClkThermalSensor_GPU];
|
realGPU_Temp = hocclkCTX.temps[HocClkThermalSensor_GPU];
|
||||||
|
realPLLX_Temp = hocclkCTX.temps[HocClkThermalSensor_PLLX];
|
||||||
realRAM_Temp = hocclkCTX.temps[HocClkThermalSensor_MEM];
|
realRAM_Temp = hocclkCTX.temps[HocClkThermalSensor_MEM];
|
||||||
|
|
||||||
realCPU_mV = hocclkCTX.voltages[HocClkVoltage_CPU];
|
realCPU_mV = hocclkCTX.voltages[HocClkVoltage_CPU];
|
||||||
@@ -719,6 +721,7 @@ void Misc3(void*) {
|
|||||||
|
|
||||||
realCPU_Temp = hocclkCTX.temps[HocClkThermalSensor_CPU];
|
realCPU_Temp = hocclkCTX.temps[HocClkThermalSensor_CPU];
|
||||||
realGPU_Temp = hocclkCTX.temps[HocClkThermalSensor_GPU];
|
realGPU_Temp = hocclkCTX.temps[HocClkThermalSensor_GPU];
|
||||||
|
realPLLX_Temp = hocclkCTX.temps[HocClkThermalSensor_PLLX];
|
||||||
realRAM_Temp = hocclkCTX.temps[HocClkThermalSensor_MEM];
|
realRAM_Temp = hocclkCTX.temps[HocClkThermalSensor_MEM];
|
||||||
|
|
||||||
realCPU_mV = hocclkCTX.voltages[HocClkVoltage_CPU];
|
realCPU_mV = hocclkCTX.voltages[HocClkVoltage_CPU];
|
||||||
|
|||||||
@@ -884,7 +884,7 @@ public:
|
|||||||
|
|
||||||
if (settings.realTemps && realCPU_Temp != 0) {
|
if (settings.realTemps && realCPU_Temp != 0) {
|
||||||
char temp_buffer[48];
|
char temp_buffer[48];
|
||||||
snprintf(temp_buffer, sizeof(temp_buffer), " %s", CPU_temp_c);
|
snprintf(temp_buffer, sizeof(temp_buffer), "%s", CPU_temp_c);
|
||||||
strncat(CPU_compressed_c, temp_buffer, sizeof(CPU_compressed_c) - strlen(CPU_compressed_c) - 1);
|
strncat(CPU_compressed_c, temp_buffer, sizeof(CPU_compressed_c) - strlen(CPU_compressed_c) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -914,7 +914,7 @@ public:
|
|||||||
|
|
||||||
if (settings.realTemps && realGPU_Temp != 0) {
|
if (settings.realTemps && realGPU_Temp != 0) {
|
||||||
char temp_buffer[48];
|
char temp_buffer[48];
|
||||||
snprintf(temp_buffer, sizeof(temp_buffer), " %s", GPU_temp_c);
|
snprintf(temp_buffer, sizeof(temp_buffer), "%s", GPU_temp_c);
|
||||||
strncat(GPU_Load_c, temp_buffer, sizeof(GPU_Load_c) - strlen(GPU_Load_c) - 1);
|
strncat(GPU_Load_c, temp_buffer, sizeof(GPU_Load_c) - strlen(GPU_Load_c) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -979,7 +979,7 @@ public:
|
|||||||
|
|
||||||
if (settings.realTemps && realRAM_Temp != 0) {
|
if (settings.realTemps && realRAM_Temp != 0) {
|
||||||
char temp_buffer[48];
|
char temp_buffer[48];
|
||||||
snprintf(temp_buffer, sizeof(temp_buffer), " %s", RAM_temp_c);
|
snprintf(temp_buffer, sizeof(temp_buffer), "%s", RAM_temp_c);
|
||||||
strncat(RAM_var_compressed_c, temp_buffer, sizeof(RAM_var_compressed_c) - strlen(RAM_var_compressed_c) - 1);
|
strncat(RAM_var_compressed_c, temp_buffer, sizeof(RAM_var_compressed_c) - strlen(RAM_var_compressed_c) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1100,13 +1100,13 @@ public:
|
|||||||
|
|
||||||
if (settings.realTemps) {
|
if (settings.realTemps) {
|
||||||
if (realCPU_Temp != 0) {
|
if (realCPU_Temp != 0) {
|
||||||
snprintf(CPU_temp_c, sizeof(CPU_temp_c), " %.1f°C", realCPU_Temp / 1000.0f);
|
snprintf(CPU_temp_c, sizeof(CPU_temp_c), "%.1f°C", realCPU_Temp / 1000.0f);
|
||||||
}
|
}
|
||||||
if (realGPU_Temp != 0) {
|
if (realGPU_Temp != 0) {
|
||||||
snprintf(GPU_temp_c, sizeof(GPU_temp_c), " %.1f°C", realGPU_Temp / 1000.0f);
|
snprintf(GPU_temp_c, sizeof(GPU_temp_c), "%.1f°C", realGPU_Temp / 1000.0f);
|
||||||
}
|
}
|
||||||
if (realRAM_Temp != 0) {
|
if (realRAM_Temp != 0) {
|
||||||
snprintf(RAM_temp_c, sizeof(RAM_temp_c), " %.1f°C", realRAM_Temp / 1000.0f);
|
snprintf(RAM_temp_c, sizeof(RAM_temp_c), "%.1f°C", realRAM_Temp / 1000.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user