Ver código fonte

Fixed variable name.

Pawel Jarosz 2 anos atrás
pai
commit
47aebe312d

+ 1 - 1
examples/timer/repeating_timer/repeating_timer.gui_script

@@ -18,7 +18,7 @@ function init(self)
 
 	timer.delay(interval, repeating, function()		-- <4>
 		self.count = self.count + 1					-- <5>
-		local p = self.time % 60					-- <6>
+		local p = self.count % 60					-- <6>
 		update_numeric(p)							-- <7>
 		update_radial(p)							-- <8>
 	end)