This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430G2332: Error in example 'msp430g2xx2_pinosc_01.c '

Part Number: MSP430G2332

Hi, 

Greetings.

Our customer found an error in the example 'msp430g2xx2_pinosc_01.c ' which was downloaded using this link http://www.ti.com/lit/zip/slac467

I've copied the part that has an error. 

starting from line 159:

if (delta_cnt > j) // Determine if each key is pressed
{ // per a preset threshold
j = delta_cnt;
key_pressed = 1; // key pressed
}
else
key_pressed = 1;

The 'key_pressed' should be '0' when the condition is not met. Am I correct on this? 

I appreciate your feedback on this matter. 

Thank you and have a great day.


Regards,

Cedrick

**Attention** This is a public forum