Commit 92afc28e authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto
Browse files

stream-deck: Fix Stream Deck Mini package size

Minis receive each packet in 1024 byte chunks, of which 16 bytes are
the header, and the rest is the BMP contents. The package size was
mistakenly set to 8192, which is the XL size actually, so it was
probably a copy-paste error.

Texture uploading seems to be working now.
parent 6582354c
......@@ -357,7 +357,7 @@ set_button_texture_mini (BsStreamDeck *self,
g_autofree unsigned char *payload = NULL;
g_autofree unsigned char *buffer = NULL;
const size_t package_size = 8191;
const size_t package_size = 1024;
const size_t header_size = 16;
size_t bytes_remaining;
size_t buffer_size;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment