File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -196,13 +196,15 @@ const GPIO*
196
196
return NULL ;
197
197
}
198
198
}
199
- if (interface == & SPI ) {
199
+
200
+ // This check is incorrect and not working anymore
201
+ /*if(interface == &SPI) {
200
202
if(!((gpio_interfaces_list[0] == NULL || gpio_interfaces_list[0] == &SPI) &&
201
203
(gpio_interfaces_list[1] == NULL || gpio_interfaces_list[1] == &SPI) &&
202
204
(gpio_interfaces_list[3] == NULL || gpio_interfaces_list[3] == &SPI))) {
203
205
return NULL;
204
206
}
205
- }
207
+ }*/
206
208
207
209
uint8_t aviable_index = 0 ;
208
210
for (uint8_t i = 0 ; i < GPIO_ITEMS ; i ++ ) {
Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ bool unitemp_MAX31855_free(Sensor* sensor) {
43
43
bool unitemp_MAX31855_init (Sensor * sensor ) {
44
44
SPISensor * instance = sensor -> instance ;
45
45
furi_hal_spi_bus_handle_init (instance -> spi );
46
- UNUSED (instance );
47
46
return true;
48
47
}
49
48
50
49
bool unitemp_MAX31855_deinit (Sensor * sensor ) {
51
- UNUSED (sensor );
50
+ SPISensor * instance = sensor -> instance ;
51
+ furi_hal_spi_bus_handle_deinit (instance -> spi );
52
52
return true;
53
53
}
54
54
Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ bool unitemp_MAX6675_free(Sensor* sensor) {
43
43
bool unitemp_MAX6675_init (Sensor * sensor ) {
44
44
SPISensor * instance = sensor -> instance ;
45
45
furi_hal_spi_bus_handle_init (instance -> spi );
46
- UNUSED (instance );
47
46
return true;
48
47
}
49
48
50
49
bool unitemp_MAX6675_deinit (Sensor * sensor ) {
51
- UNUSED (sensor );
50
+ SPISensor * instance = sensor -> instance ;
51
+ furi_hal_spi_bus_handle_deinit (instance -> spi );
52
52
return true;
53
53
}
54
54
You can’t perform that action at this time.
0 commit comments