2019-10-06 04:01 PM
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.