avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #30735] bug in example twitest


From: Harald Peters
Subject: [avr-libc-dev] [bug #30735] bug in example twitest
Date: Tue, 10 Aug 2010 18:50:12 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]