Skip to content

Commit

Permalink
DataFlash: fix compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Jul 16, 2015
1 parent 6669815 commit cc59a03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions libraries/DataFlash/DataFlash_MAVLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ DataFlash_MAVLink::DataFlash_MAVLink(mavlink_channel_t chan) :
#endif
{
memset(&mavlink, 0, sizeof(mavlink));
memset(_is_critical_block, 0, sizeof(_is_critical_block));
}


Expand Down
3 changes: 2 additions & 1 deletion libraries/DataFlash/DataFlash_MAVLink.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ class DataFlash_MAVLink : public DataFlash_Class
uint8_t _cur_block_address;
uint16_t _latest_block_len;
uint32_t _last_response_time;

// write buffer
uint8_t _buf[NUM_BUFFER_BLOCKS][BUFFER_BLOCK_SIZE];
uint32_t _block_num[NUM_BUFFER_BLOCKS];
bool _is_critical_block[NUM_BUFFER_BLOCKS] = {0};
bool _is_critical_block[NUM_BUFFER_BLOCKS];
struct {
// socket to telem2 on aircraft
bool connected;
Expand Down

0 comments on commit cc59a03

Please sign in to comment.