From 6464057b19e7cc6608a7e43b5e408704f65e1009 Mon Sep 17 00:00:00 2001 From: Massimo Callegari Date: Mon, 22 Apr 2024 14:13:26 +0200 Subject: [PATCH] Fix ArtFirmwareMaster blockId count --- artnet/transmit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artnet/transmit.c b/artnet/transmit.c index ce19b11..e850619 100644 --- a/artnet/transmit.c +++ b/artnet/transmit.c @@ -346,7 +346,7 @@ int artnet_tx_firmware_packet(node n, firmware_transfer_t *firm) { firm->expected_block++; // limit between 0 and 255 (only 8 bits wide) // we dont' actually need this cause it will be shorted when assigned above - firm->expected_block %= UINT8_MAX; + firm->expected_block %= (UINT8_MAX + 1); } return ARTNET_EOK; }