Replace use of memcpy_P() with memcpy()

This commit is contained in:
Lucas De Marchi 2015-10-25 14:23:25 -02:00 committed by Randy Mackay
parent f8f3f5a024
commit e4b313d2ca
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ AP_Declination::get_lookup_value(uint8_t x, uint8_t y)
for(i = start_index; i < (start_index + PGM_UINT8(&declination_keys[1][x])) && current_virtual_index <= y; i++) { for(i = start_index; i < (start_index + PGM_UINT8(&declination_keys[1][x])) && current_virtual_index <= y; i++) {
// Pull out the row_value struct // Pull out the row_value struct
memcpy_P((void*) &stval, (const prog_char *)&declination_values[i], sizeof(struct row_value)); memcpy((void*) &stval, (const prog_char *)&declination_values[i], sizeof(struct row_value));
// Pull the first offset and determine sign // Pull the first offset and determine sign
offset = stval.abs_offset; offset = stval.abs_offset;