Skip to content

Commit 52aed1a

Browse files
jrosnRoman Sosnovsky
authored andcommitted
Fixed build on SDK 86.0
1 parent ebec477 commit 52aed1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interfaces/I2CSensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
static uint8_t sensors_count = 0;
2121

22-
void unitemp_i2c_acquire(FuriHalI2cBusHandle* handle) {
22+
void unitemp_i2c_acquire(const FuriHalI2cBusHandle* handle) {
2323
furi_hal_i2c_acquire(handle);
2424
LL_GPIO_SetPinPull(gpio_ext_pc1.port, gpio_ext_pc1.pin, LL_GPIO_PULL_UP);
2525
LL_GPIO_SetPinPull(gpio_ext_pc0.port, gpio_ext_pc0.pin, LL_GPIO_PULL_UP);

interfaces/I2CSensor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//Структура I2C датчика
2626
typedef struct I2CSensor {
2727
//Указатель на интерфейс I2C
28-
FuriHalI2cBusHandle* i2c;
28+
const FuriHalI2cBusHandle* i2c;
2929
//Минимальный адрес устройства на шине I2C
3030
uint8_t minI2CAdr;
3131
//Максимальный адрес устройства на шине I2C
@@ -41,7 +41,7 @@ typedef struct I2CSensor {
4141
*
4242
* @param handle Указатель на шину
4343
*/
44-
void unitemp_i2c_acquire(FuriHalI2cBusHandle* handle);
44+
void unitemp_i2c_acquire(const FuriHalI2cBusHandle* handle);
4545

4646
/**
4747
* @brief Проверить наличие датчика на шине

0 commit comments

Comments
 (0)