DataFlash: fix incorrect comment

This commit is contained in:
Peter Barker 2015-07-20 10:41:14 +10:00 committed by Randy Mackay
parent 8225e58454
commit 65813f308e

View File

@ -652,8 +652,8 @@ void DataFlash_File::_io_timer(void)
uint32_t tnow = hal.scheduler->micros(); uint32_t tnow = hal.scheduler->micros();
if (nbytes < _writebuf_chunk && if (nbytes < _writebuf_chunk &&
tnow - _last_write_time < 2000000UL) { tnow - _last_write_time < 2000000UL) {
// write in 512 byte chunks, but always write at least once // write in _writebuf_chunk-sized chunks, but always write at
// per 2 seconds if data is available // least once per 2 seconds if data is available
return; return;
} }