Thread: Need a second opinion - code error and i cant see it

  1. #16
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    First fix your while loop.

    Avr Studio is that some compiler or something?

    It will crash no doubtedly if you have some faulty loop system

  2. #17
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    Also taking a look at your code right now, the condition for the while loop to run is if board_updated = 1;

    But your if statement sets board_updated = 1 if vara == 1. Does this mean board_updated was never equal to 1 in the first place? If so, then your while loop would never run. If not, then make sure the function calls your making actually work so that it can exit the loop at some point after getting the correct return value from the function

  3. #18
    Registered User
    Join Date
    Oct 2007
    Posts
    10
    alrighty trying it now

  4. #19
    Registered User
    Join Date
    Oct 2007
    Posts
    10
    it is continually crashing
    any suggestions how to get in and fix it before it crashes?

    thanks again

  5. #20
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    Restart your system, if the program is crashing before you are doing anything, then there is some external problem.

Popular pages Recent additions subscribe to a feed