Reynard 0 Posted November 20, 2015 Report Share Posted November 20, 2015 #include <system.h> typedef unsigned char uint8; #define PULSE_CHANNELS 4 //#define CHANNEL_1 0 struct { uint8 moneyChannel; uint8 mechPulseInput; } mech; void Function(void) { uint8 channel; for (channel = CHANNEL_1; channel < PULSE_CHANNELS; ++channel) { } // end for. } Having some problems with compiler crashing with this simple code. I am getting an internal error and a dialog box pops up with 2 buttons saying debug and close program. Pressing close program doesn't close the program, the IDE just continues as normal. The (psudo) crash occurs when the constant CHANNEL_1 is undefined. Sourceboost C V7.30 Windows 10 64 bit. PIC18F26K22 Cheers Reynard Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.