cancel
Showing results for 
Search instead for 
Did you mean: 

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.

SKill
Associate II

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.

0 REPLIES 0