Skip to content

Commit

Permalink
Use separate I2C bus definition for SB-TSI
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 authored and crawfxrd committed Jul 24, 2024
1 parent f8be023 commit 6e85e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/board/system76/common/peci.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ bool peci_get_temp(int16_t *const data) {
// We only read the CPU temp high value, since a resolution of 1C is
// good enough
int8_t cpu_temp_high;
int res = i2c_get(&I2C_SMBUS, 0x4C, 0x01, &cpu_temp_high, 1);
int res = i2c_get(&I2C_CPU, 0x4C, 0x01, &cpu_temp_high, 1);

if (res == 1) {
// Convert from AMD format
Expand Down

0 comments on commit 6e85e32

Please sign in to comment.