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:示例中的错误#39;msp430g2xx2_pinosc_01.c 和#39;

Guru**** 1131400 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/850510/msp430g2332-error-in-example-msp430g2xx2_pinosc_01-c

器件型号:MSP430G2332

您好!  

大家好。

我们的客户在 使用此链接 http://www.ti.com/lit/zip/slac467下载的示例'msp430g2xx2_pinosc_01.c '中发现错误

我复制了有错误的器件。  

从第159行开始:

如果(delta_cnt > j)//确定是否按下每个键
{//根据预设阈值
j = delta_cnt;
key_pressed = 1;//按键

其他
key_pressed = 1;

当不满足条件时、'key_pressed'应该为'0'。 我对此是否正确?  

感谢您就此问题提供的反馈。  

谢谢、祝您愉快。


此致、

Cedrick

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    是的、您回答正确。 这是一个错误。  当不满足条件时、'key_pressed'应该为'0'。

    感谢您的报告。 我会向合适的人报告这一点。  

    祝你度过美好的一天!