thannara123
Advanced Member level 5
- Joined
- Jan 7, 2010
- Messages
- 1,602
- Helped
- 122
- Reputation
- 244
- Reaction score
- 116
- Trophy points
- 1,353
- Activity points
- 10,625
I am wrting to here a part of my code , when it run works normally at the red colored section
Logic :
1) If(f==2) it will ask old password
2) Enter the oldpassword
3) check the password is matched with EEPRO
4) if yes ask new password and write to EEPRO
4) else invalid
please help me
Code:
while(1){
[COLOR=#ff0000] LCD_clear;
password= InputNumber("Enter Password");//Get the keycode of pressed key
if(password==ReadPassFromEEPROM())
{
LCD_clear;
string(" Unlocked");
_delay_ms(100);
while(1) {
f=GetKeyPressed();
while(GetKeyPressed()==255)
{
_delay_loop_2(10);
}
if (f==2){ [/COLOR]
password==InputNumber("old"); // not getting values
_delay_ms(300);
if (password==ReadPassFromEEPROM())
{
newpassword=InputNumber("new");
string("just testing");
WritePassToEEPROM(newpassword);
_delay_ms(300);
}
}
}
}
1) If(f==2) it will ask old password
2) Enter the oldpassword
3) check the password is matched with EEPRO
4) if yes ask new password and write to EEPRO
4) else invalid
please help me