Skip to content

Commit feb1152

Browse files
committed
1. fix bug
1 parent ac8e8c1 commit feb1152

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

AvrEeprom.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* File name : AvrEeprom.c
55
*/
66
/*********************************************************************************/
7-
#include "AvrEeprom.h"
7+
#include "include/AvrEeprom.h"
88
/*********************************************************************************/
9-
#if(AVR_EEPROM_REVISION_DATE != 20161108)
9+
#if(AVR_EEPROM_REVISION_DATE != 20161130)
1010
#error wrong include file. (AvrEeprom.h)
1111
#endif
1212
/*********************************************************************************/
@@ -78,7 +78,7 @@ void DoEepReadControl(tag_EepControl *Eep)
7878
do
7979
{
8080
Eep->DataBase[Index] = Eeprom_Read(Eep->EepBase + (Index));
81-
}while(++Index <= Eep->Length);
81+
}while(++Index < Eep->Length);
8282
}
8383
/*********************************************************************************/
8484
void GetDataFromEeprom(char* const Dest, const int EepBase, int Length)
@@ -101,7 +101,7 @@ void GetDataFromEeprom(char* const Dest, const int EepBase, int Length)
101101
do
102102
{
103103
Dest[Index] = Eeprom_Read(EepBase + Index);
104-
}while(++Index <= Length);
104+
}while(++Index < Length);
105105
}
106106
/*********************************************************************************/
107107
char DoEepWriteControl(tag_EepControl *Eep)

AvrEeprom.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
#ifndef __AVR_EEPROM_H__
88
#define __AVR_EEPROM_H__
99
/*********************************************************************************/
10-
#define AVR_EEPROM_REVISION_DATE 20161108
10+
#define AVR_EEPROM_REVISION_DATE 20161130
1111
/*********************************************************************************/
1212
/** REVISION HISTORY **/
1313
/*
14+
2016. 11. 30. - DoEepReadControl(), GetDataFromEeprom() 함수에서 Length 보다 1바이트 더 읽던 현상 수정.
15+
Jung Hyun Gu
16+
1417
2016. 11. 08. - revision valid check 추가.
1518
Jung Hyun Gu
1619

0 commit comments

Comments
 (0)