File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919
2020static  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 );
Original file line number Diff line number Diff line change 2525//Структура I2C датчика 
2626typedef  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 Проверить наличие датчика на шине 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments