* Removed extra comments related to MAX_CFG (could be confusing to future developers)
* Added two new parameters to config file (Max Filesize and Max Filenumber, both only used in MODE_ROTATE)
* Added new mode (3) : MODE_ROTATE
* Added debug prints to help see max filesize and max filenumber (inside #if DEBUG)
* Commented out decrimenting newFileNumber when it is read from EEPROM
* Added three new entries to the 'set' menu:
* 4) - Sets mode to MODE_ROTATE
* 8) and 9) - sets the new Max Filesize and Max Filenumber config values
* Added code to print out max fileszie and file number at top of 'set' menu
* Updated 'set' menu strings to be more descriptive
* Fixed 'set' menu 7) (set number of escape characters) with new routine getSerialByte() to read in a 3 digit integer properly rather than a single character
* Added code to save/ restore Max Filesize and Max Filenumber from EEPROM and config file
NOTE: Crashes happen when returning from "set" menu after certain operations if compiled with latest Arduino IDE. Tested with 1.6.8 and it works fine. (See issue #245 for more details)
This example reads characters from OpenLog over the hardware serial at
9600 and passes them out over the software serial at 14400. This is
needed for issue 170.
When reading back a file it seems there are 5 extra bytes read. One of
these is the '>' that OpenLog responds with. The other four are probably
newline and other white space chars.
The number of escape chars was increased to 0 to 254. The log name now
increments even if there are no files and the receive buffer was
decreased to prevent memory bugs.
Added text based baud rates to light. Now OpenLog_v3_Light can handle
*any* baud rate from 300 to 1,000,000bps. Also fixed the hard coded
array length to avoid the bug found in the main branch.
See issue #136. Thank you dlkeng! You rock. Again. Thanks for adding
this feature. When starting in new log mode, if the LOG00256.txt is zero
bytes, OpenLog will use LOG00256 instead of LOG00257.
The array size was too small which caused echo to act oddly and it
caused the config file record to corrupt the file. This would show
itself when the SD was read on a computer and windows would insist on
scanning and fixing.
Two .hex files in this commit: One is a .hex version of the Arduino
sketch. The other .hex file is a "combined" .hex file that contains both
the optiboot bootloader and the v3.2 firmware.
Fixed issue #135: When removing files and there is a directory, all
wildcard files are now removed correctly. Thank you dlkeng! Your patch
worked great!
Now supports any baud rate from 300bps to 1,000,000bps and anything in
between. This will allow you to really configure OpenLog to anything you
need, but remember you can always hardware reset OpenLog to 9600 by
pulling the RX line low during power up.
We lose about 182 bytes for this addtional support. It will be left in
for now. We may want to go to a different baud input system rather than
a selection menu.