changed order of wait/send

This commit is contained in:
h4570
2020-11-22 13:15:15 +01:00
parent 756f69d160
commit e9febb5d8d
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -68,6 +68,7 @@ void GifSender::sendTexture(MeshTexture &texture, texbuffer_t *t_texBuffer)
packet2_update(packet2, draw_texture_wrapping(packet2->next, 0, texture.getWrapSettings()));
packet2_chain_close_tag(packet2);
packet2_update(packet2, draw_texture_flush(packet2->next));
dma_channel_wait(DMA_CHANNEL_GIF, 0);
dma_channel_send_packet2(packet2, DMA_CHANNEL_GIF, true);
dma_channel_wait(DMA_CHANNEL_GIF, 0);
packet2_free(packet2);
@@ -109,8 +110,8 @@ void GifSender::sendPacket()
packet2_update(currentPacket, draw_finish(currentPacket->next));
packet2_chain_close_tag(currentPacket);
}
dma_channel_send_packet2(currentPacket, DMA_CHANNEL_GIF, true);
dma_channel_wait(DMA_CHANNEL_GIF, 0);
dma_channel_send_packet2(currentPacket, DMA_CHANNEL_GIF, true);
}
/** Adds clear screen to current packet */