Corrected the type of Erase() member and made it virtual
This commit is contained in:
parent
b14cee50ba
commit
4116e596d5
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user