From ae2929d65ca71406bc00d10619e673b633f091ad Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Tue, 9 Dec 2025 20:48:42 +0000 Subject: [PATCH] Fix error with math.pow Fix rounding function syntax for compatibility with Wireshark 4.6 regarding the use of math.pow() I'm not a lua programmer, just followed the advice from Gemini to replace math.pow(x,y) by (x ^ y) --- mmdvm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdvm.lua b/mmdvm.lua index 7b4c269..ddccb32 100644 --- a/mmdvm.lua +++ b/mmdvm.lua @@ -62,7 +62,7 @@ function string.fromhex(str) end function round(num, precision) - return math.floor(num*math.pow(10,precision)+0.5) / math.pow(10,precision) + return math.floor(num * (10 ^ precision)+0.5) / (10 ^ precision) end -- removes leading zeros