Owne / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Uninitalized variables in Log_Read #306

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make at least two Logs
2. Dump 2 or higher
3.

What is the expected output? What do you see instead?
Dumping second and higher records does not work. 

What version of the product are you using? On what operating system?
APM 2.011 and developmentversion SVN 

Please provide any additional information below.

Variables log_step and packet_count in function Log_Read (Log.pde) are used 
uninitialized. Intitalize to zero:

// Read the DataFlash log memory : Packet Parser
void Log_Read(int start_page, int end_page)
{
    byte data;
    byte log_step = 0;
    int packet_count = 0;
    int page = start_page;

Original issue reported on code.google.com by el_andre...@hotmail.com on 28 Mar 2011 at 8:22

GoogleCodeExporter commented 8 years ago
Thanks - corrected

Original comment by Meee...@gmail.com on 29 Mar 2011 at 1:31