Corrected the type of Erase() member and made it virtual

This commit is contained in:
Claudio Lanconelli 2000-02-29 11:07:30 +00:00
parent b14cee50ba
commit 4116e596d5
2 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ int At89sBus::WriteLockBits(int byte)
int mask = 0xff & ~byte;
SendDataByte(WriteLock0);
SendDataByte(mask); //Atmel datasheets don't specify what bits are LB1, LB2, LB3!!
SendDataByte(mask | WriteLock1); //Atmel datasheets don't specify what bits are LB1, LB2, LB3!!
SendDataByte(0);
WaitMsec(20); //4msec dai datasheet Atmel
@ -165,7 +165,7 @@ int At89sBus::ReadDeviceCode(int addr)
return OK;
}
int At89sBus::Erase(int type)
int At89sBus::Erase()
{
//Erase command
SendDataByte(ChipErase0);

View File

@ -44,8 +44,8 @@ class At89sBus : public At90sBus
long Read(int addr, UBYTE *data, long length);
long Write(int addr, UBYTE const *data, long length);
int Reset();
int Erase(int type = 0);
virtual int Reset();
virtual int Erase();
int ReadDeviceCode(int addr);
int WriteLockBits(int byte);