глобальные структуруы OW и DS перенесены в hdallas напрямую, без указателей
и соответственно укорочены аргументы Dallas_BusFirstInit
This commit is contained in:
@@ -92,9 +92,9 @@ int main(void)
|
||||
MX_USART1_UART_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
#ifndef UART_Driver
|
||||
Dallas_BusFirstInit(&hdallas, OW_GPIO_Port, OW_Pin, NULL, NULL);
|
||||
Dallas_BusFirstInit(&hdallas, OW_GPIO_Port, OW_Pin);
|
||||
#else
|
||||
Dallas_BusFirstInit(&hdallas, &huart1, NULL, NULL);
|
||||
Dallas_BusFirstInit(&hdallas, &huart1);
|
||||
#endif
|
||||
sens.Init.InitParam.Ind = 0;
|
||||
sens.Init.init_func = &Dallas_SensorInitByInd;
|
||||
|
||||
Reference in New Issue
Block a user