URL: <http://savannah.nongnu.org/bugs/?30735>
Summary: bug in example twitest Project: AVR C Runtime Library Submitted by: haraldp Submitted on: Di 10 Aug 2010 18:50:11 GMT Category: Documentation Severity: 3 - Normal Priority: 5 - Normal Item Group: Documentation Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.6.8 Fixed Release: None _______________________________________________________ Details: There is a bug in function: int ee24xx_write_page(uint16_t eeaddr, int len, uint8_t *buf) if more than 1 byte are written 3 bytes before the end of a page, the function writes one byte more than required wrong: ... if (eeaddr + len < (eeaddr | (PAGE_SIZE - 1))) endaddr = eeaddr + len; ... correct: ... if (eeaddr + len <= (eeaddr | (PAGE_SIZE - 1))) === endaddr = eeaddr + len; ... _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?30735> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev