Доработка. Работа над загрузкой флеш.

This commit is contained in:
MaD_CaT
2024-11-12 15:51:52 +03:00
parent 460cea7ade
commit d9bb79e261
3 changed files with 11 additions and 5 deletions

View File

@@ -113,6 +113,8 @@ func on_disconnect(tbl, selected_rows, unit_ems):
func on_btn_flash_read(btn):
await get_tree().create_timer(0.1).timeout
btn.pressed = false
for board in g_boards.values():
board.need_flash_rd = true
## Обработчик нажатия кнопки "Записать".
@@ -460,6 +462,7 @@ func on_data_ems_received(unit_ems):
active_board.state_board = active_board.READ
active_board.start_rw_kems(true)
elif board.online and board.read_done and board.need_flash_rd:
print_debug()
active_board = board
active_board.state_board = active_board.READ_FLASH
active_board.read_flash()