DataFlash: Fix typos

This commit is contained in:
Ricardo de Almeida Gonzaga 2016-05-12 13:50:13 -03:00 committed by Lucas De Marchi
parent 2ee6a85e67
commit dc7acdf03f
3 changed files with 4 additions and 4 deletions

View File

@ -360,7 +360,7 @@ bool DataFlash_Class::fill_log_write_logstructure(struct LogStructure &logstruct
} }
/* calculate the length of output of a format string. Note that this /* calculate the length of output of a format string. Note that this
* returns an int16_t; if it returns -1 then an error has occured. * returns an int16_t; if it returns -1 then an error has occurred.
* This was mechanically converted from init_field_types in * This was mechanically converted from init_field_types in
* Tools/Replay/MsgHandler.cpp */ * Tools/Replay/MsgHandler.cpp */
int16_t DataFlash_Class::Log_Write_calc_msg_len(const char *fmt) const int16_t DataFlash_Class::Log_Write_calc_msg_len(const char *fmt) const

View File

@ -34,7 +34,7 @@ void DataFlash_Block::FinishWrite(void)
// Write Buffer to flash, NO WAIT // Write Buffer to flash, NO WAIT
BufferToPage(df_BufferNum, df_PageAdr, 0); BufferToPage(df_BufferNum, df_PageAdr, 0);
df_PageAdr++; df_PageAdr++;
// If we reach the end of the memory, start from the begining // If we reach the end of the memory, start from the beginning
if (df_PageAdr > df_NumPages) if (df_PageAdr > df_NumPages)
df_PageAdr = 1; df_PageAdr = 1;

View File

@ -229,7 +229,7 @@ bool DataFlash_Block::check_wrapped(void)
return 1; return 1;
} }
// This funciton finds the last log number // This function finds the last log number
uint16_t DataFlash_Block::find_last_log(void) uint16_t DataFlash_Block::find_last_log(void)
{ {
uint16_t last_page = find_last_page(); uint16_t last_page = find_last_page();
@ -731,7 +731,7 @@ void DataFlash_Class::Log_Write_GPS(const AP_GPS &gps, uint8_t i, uint64_t time_
}; };
WriteBlock(&pkt, sizeof(pkt)); WriteBlock(&pkt, sizeof(pkt));
/* write auxillary accuracy information as well */ /* write auxiliary accuracy information as well */
float hacc = 0, vacc = 0, sacc = 0; float hacc = 0, vacc = 0, sacc = 0;
gps.horizontal_accuracy(i, hacc); gps.horizontal_accuracy(i, hacc);
gps.vertical_accuracy(i, vacc); gps.vertical_accuracy(i, vacc);