Replace the hardcoded size of 1024 bytes with the appropriate AVR constant

http://www.nongnu.org/avr-libc/user-manual/group__avr__io.html