Changeset 257 for rtos_arduino


Ignore:
Timestamp:
Aug 23, 2016, 9:25:17 AM (8 years ago)
Author:
ertl-honda
Message:

バグ修正

Location:
rtos_arduino/trunk/examples/MultiTaskText
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/examples/MultiTaskText/Exclusion/rca_app.cpp

    r245 r257  
    3333   int TouchValue = digitalRead(TOUCH_PIN);
    3434
    35   if ((PreTouchValue == 0) && (TouchValue == 1) && (TouchState = 0)) {
     35  if ((PreTouchValue == 0) && (TouchValue == 1) && (TouchState == 0)) {
    3636    TouchState = 1;
    3737  }
    3838
    39   if ((PreTouchValue == 1) && (TouchValue == 0) && (TouchState = 1)) {
     39  if ((PreTouchValue == 1) && (TouchValue == 0) && (TouchState == 1)) {
    4040      TouchState = 0;
    4141      iwup_tsk(RCA_TASK1);
  • rtos_arduino/trunk/examples/MultiTaskText/Interrupt/rca_app.cpp

    r244 r257  
    3333   int TouchValue = digitalRead(TOUCH_PIN);
    3434
    35   if ((PreTouchValue == 0) && (TouchValue == 1) && (TouchState = 0)) {
     35  if ((PreTouchValue == 0) && (TouchValue == 1) && (TouchState == 0)) {
    3636    TouchState = 1;
    3737  }
    3838
    39   if ((PreTouchValue == 1) && (TouchValue == 0) && (TouchState = 1)) {
     39  if ((PreTouchValue == 1) && (TouchValue == 0) && (TouchState == 1)) {
    4040      TouchState = 0;
    4141      iwup_tsk(RCA_TASK1);
  • rtos_arduino/trunk/examples/MultiTaskText/SingleTask/rca_app.cpp

    r245 r257  
    7070  int TouchValue = digitalRead(TOUCH_PIN);
    7171
    72   if ((PreTouchValue == 0) && (TouchValue == 1) && (TouchState = 0)) {
     72  if ((PreTouchValue == 0) && (TouchValue == 1) && (TouchState == 0)) {
    7373    TouchState = 1;
    7474  }
    7575
    76   if ((PreTouchValue == 1) && (TouchValue == 0) && (TouchState = 1)) {
     76  if ((PreTouchValue == 1) && (TouchValue == 0) && (TouchState == 1)) {
    7777    TouchState = 0;
    7878    if (LEDState == 0) {
Note: See TracChangeset for help on using the changeset viewer.