Skip to content

Commit

Permalink
Fix broken temperature condition
Browse files Browse the repository at this point in the history
  • Loading branch information
widgetii committed Nov 19, 2023
1 parent 89abdd3 commit 0dc9cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hal/hisi/hal_hisi.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ static uint32_t hisi_reg_temp(uint32_t read_addr, int temp_bitness,
uint32_t readed;

if (mem_reg(prep_addr, &readed, OP_READ)) {
if (readed == prep_addr) {
if (readed != prep_val) {
mem_reg(prep_addr, &prep_val, OP_WRITE);
usleep(100000);
}
Expand Down

0 comments on commit 0dc9cb4

Please sign in to comment.