Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | DArn silly Basix X code issue

Discussion forum for the BasicX family of microcontroller chips.

DArn silly Basix X code issue - ryan_autet - Jun 28 19:51:42 2007

Hi I have an issue

i want to call this call this sub routine once how ever no matter how i
do it with this if then statment it allways calls it twice...

has any one else encountered this?
Counter5 = True ' RESET RANDOM SPEACH COUNTER <---

If Counter5 = True Then '<------------ BUG I CAll this twice
Counter5 = False
Call Random_Action
End If


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: DArn silly Basix X code issue - Tom Becker - Jun 29 10:19:17 2007


> Counter5 = True ' RESET
> If Counter5 = True Then '<- BUG
> Counter5 = False
> Call Random_Action
> End If

What surrounds this, Ryan? No way this code repeats by itself. A Do
While or Do Until might somehow be suspect, but not an If.

Look outside that code.
Tom


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )