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;

View File

@@ -157,34 +157,18 @@
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>67</LineNumber>
<LineNumber>152</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134238266</Address>
<Address>134221440</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>..\Core\Src\main.c</Filename>
<Filename>..\Core\Dallas\dallas_tools.c</Filename>
<ExecCommand></ExecCommand>
<Expression>\\Project\../Core/Src/main.c\67</Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>66</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>..\Core\Src\main.c</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
<Expression>\\Project\../Core/Dallas/dallas_tools.c\152</Expression>
</Bp>
</Breakpoint>
<WatchWindow1>