fpga_test: Simplify LCD handover

It's all handled by the deinit

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2022-05-16 21:50:17 +02:00
parent 7ae0bae773
commit 3499d6dea4

View file

@ -156,12 +156,6 @@ void fpga_test(ILI9341* ili9341, ICE40* ice40, xQueueHandle buttonQueue) {
reload_fpga = false; reload_fpga = false;
printf("LCD deinit...\n"); printf("LCD deinit...\n");
ili9341_deinit(ili9341); ili9341_deinit(ili9341);
printf("LCD deselect...\n");
ili9341_select(ili9341, false);
printf("Wait...\n");
vTaskDelay(200 / portTICK_PERIOD_MS);
printf("LCD select...\n");
ili9341_select(ili9341, true);
printf("FPGA load...\n"); printf("FPGA load...\n");
if (load_old_bitstream) { if (load_old_bitstream) {