Fix gpio state isp programmer (#2567)
* ISP: fix state gpio ISP Programmer * WS: delete string debug Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -152,6 +152,7 @@ bool avr_isp_auto_set_spi_speed_start_pmode(AvrIsp* instance) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(instance->spi) avr_isp_spi_sw_free(instance->spi);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -198,9 +198,10 @@ bool avr_isp_worker_rw_detect_chip(AvrIspWorkerRW* instance) {
|
||||
}
|
||||
avr_isp_end_pmode(instance->avr_isp);
|
||||
|
||||
furi_hal_pwm_stop(FuriHalPwmOutputIdLptim2PA4);
|
||||
|
||||
} while(0);
|
||||
|
||||
furi_hal_pwm_stop(FuriHalPwmOutputIdLptim2PA4);
|
||||
|
||||
if(instance->callback) {
|
||||
if(instance->chip_arr_ind > avr_isp_chip_arr_size) {
|
||||
instance->callback(instance->context, "No detect", instance->chip_detect, 0);
|
||||
|
Reference in New Issue
Block a user