From 278bcd9eb767323b99210354d7f27c479fce4a96 Mon Sep 17 00:00:00 2001
From: brutzman <brutzman@DESKTOP-2S09UKA>
Date: Wed, 12 Aug 2020 12:39:54 -0700
Subject: [PATCH] replace hardwired value with defined constant

---
 examples/src/UdpMulticastExamples/UdpSender.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/src/UdpMulticastExamples/UdpSender.java b/examples/src/UdpMulticastExamples/UdpSender.java
index 00fd1fb11e..afe659d076 100644
--- a/examples/src/UdpMulticastExamples/UdpSender.java
+++ b/examples/src/UdpMulticastExamples/UdpSender.java
@@ -68,8 +68,8 @@ public class UdpSender
             
             for (int index = 1; index <= TOTAL_PACKETS_TO_SEND; index++) // avoid infinite send loops in code, they can be hard to kill!
             {
-                packetID++;             // increment counter, prefer using explicit value to index
-                value = 100 - packetID; // countdown
+                packetID++;                               // increment counter, prefer using explicit value to index
+                value = TOTAL_PACKETS_TO_SEND - packetID; // countdown
                 boolean isPacketIdEvenParity = ((packetID % 2) == 0); // % is modulo operator; result 0 is even parity, 1 is odd parity
                 
                 // values of interest follow. order and types of what was sent must match what you are reading!
-- 
GitLab