Thread
:
Odd counter problems
View Single Post
#
2
16-02-2004, 13:25
Joe Ross
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Re: Odd counter problems
you need to declare armcounter as a static int. Otherwise, it gets created and destroyed on the stack each time you enter and leave the function.
Joe Ross
View Public Profile
Find all posts by Joe Ross
Find CD-Media Photos by Joe Ross
Find CD-Media Papers by Joe Ross