The Arduino bootloader has a wait-time to facilitate "sketch" (code) uploading; this causes a delay of a couple of seconds before the start of the main code.
I would like to modify the bootloader file (specifically for the Arduino Mega) so as to reduce this time to less than 1000 milliseconds at most.
I am unsure how to get started on this -- Could someone point me in the correct direction?
(Note: I am aware that I can instead directly upload only the hex file corresponding to my firmware, but in this case, I would like to maintain the bootloader.)