Use uint8_t in EEPROM code
This commit is contained in:
@ -82,7 +82,7 @@ static void eeprom_init(void) {
|
||||
}
|
||||
}
|
||||
|
||||
void eeprom_write_byte(unsigned char *pos, unsigned char value) {
|
||||
void eeprom_write_byte(uint8_t *pos, unsigned char value) {
|
||||
unsigned eeprom_address = (unsigned) pos;
|
||||
|
||||
eeprom_init();
|
||||
@ -128,7 +128,7 @@ void eeprom_update_block(const void *pos, void* eeprom_address, size_t n) {
|
||||
}
|
||||
|
||||
|
||||
unsigned char eeprom_read_byte(unsigned char *pos) {
|
||||
uint8_t eeprom_read_byte(uint8_t *pos) {
|
||||
byte data = 0xFF;
|
||||
unsigned eeprom_address = (unsigned)pos;
|
||||
|
||||
|
Reference in New Issue
Block a user