Skip to content
Snippets Groups Projects
Commit e7919302 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug in the adc_read_cmd function: the pointer to the RAM read function was wrong,

parent afc9caf2
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,9 @@ void adc_write_cmd(void *module,unsigned short int address,unsigned short int le
void adc_read_cmd(void *module,unsigned short int address,unsigned short int length,unsigned char *data)
{
ram_read_table(module,address,length,data);
TADC *adc=(TADC *)module;
ram_read_table(adc->memory,address,length,data);
}
// interrupt handlers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment