Skip to main content
Visitor II
October 6, 2019
Question

In STVD I have an enum variable in a watch window that BEEPS at me when I double click it to modify its value. The typedef is declared in another module.

  • October 6, 2019
  • 0 replies
  • 637 views

File KEYPAD.H

/* Exported types ------------------------------------------------------------*/

typedef enum { CORRECTTIME = 0, FEEDINGTIME, COUNTERTOZERO, 
 PRESSTOTEST, MOTORDEC, MOTORINC, 
 DELAYDEC, DELAYINC, HOURSETDEC, HOURSETINC, 
 MINSETDEC, MINSETINC, NOKEY
} _keyNames;

File KEYPAD.C

/* Includes ------------------------------------------------------------------*/
#include "keypad.h"

_keyNames getKey(void)
{
	_keyNames theKey;
	theKey = keyData.userKey;
	return(theKey);
}

From MAIN.C

/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "keypad.h"
_keyNames		myKey;
 
	myKey = getKey();

When I set a break point immediately after the getKey() call, the variable myKey has the correct value but I CAN NOT modify it in the watch window. When I double click on it STVD BEEPS at me. The variable is NOT BOLD like the other variables in Watch that I can modify.

    This topic has been closed for replies.