From 0dc9cb48948ff441594aec6c1efa8747a4672695 Mon Sep 17 00:00:00 2001 From: Dmitry Ilyin Date: Sun, 19 Nov 2023 18:21:52 +0300 Subject: [PATCH] Fix broken temperature condition --- src/hal/hisi/hal_hisi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hal/hisi/hal_hisi.c b/src/hal/hisi/hal_hisi.c index be177a8..3995941 100644 --- a/src/hal/hisi/hal_hisi.c +++ b/src/hal/hisi/hal_hisi.c @@ -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); }