Commit 8d55a0ea authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto
Browse files

stream-deck: Fix Mini / Original (V1) serial number fetching

The first 5 bytes are garbage, ignore them.
parent 92afc28e
Pipeline #385110 passed with stage
in 3 minutes and 2 seconds
......@@ -480,8 +480,8 @@ get_serial_number_mini_original (BsStreamDeck *self)
hid_get_feature_report (self->handle, data, sizeof (data));
serial = g_malloc0 (sizeof (char) * 17);
memcpy (serial, &data[1], 16);
serial = g_malloc0 (sizeof (char) * 13);
memcpy (serial, &data[5], 12);
BS_RETURN (serial);
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