hardfault исправлен, передавался неправильный указатель в функции Dallas_ReplaceLostedSensor

This commit is contained in:
2025-03-03 13:52:22 +03:00
parent aa5b4b3fcb
commit b96e00b166
2 changed files with 5 additions and 21 deletions

View File

@@ -41,7 +41,7 @@ HAL_StatusTypeDef Dallas_ReplaceLostedSensor(DALLAS_SensorHandleTypeDef *sensor)
if(DS18B20_Search(&DS, &OW) != HAL_OK)
return HAL_ERROR;
if(sensor->Init.init_func(sensor->hdallas->onewire, sensor) != HAL_OK)
if(sensor->Init.init_func(sensor->hdallas, sensor) != HAL_OK)
return HAL_ERROR;
return HAL_OK;