Skip to content

Commit

Permalink
args bug fix for buffer ramps
Browse files Browse the repository at this point in the history
  • Loading branch information
markzakharyan committed Nov 12, 2024
1 parent 59504d4 commit f61cdcc
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 302 deletions.
10 changes: 5 additions & 5 deletions m4/src/Peripherals/ADC/ADCBoard.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ class ADCBoard {
}

uint32_t getConversionDataNoTransaction(int adc_channel) {
byte data_array;
byte data[4];

// setup communication register for reading channel data
data_array = READ | ADDR_CHANNELDATA(adc_channel);

byte data[4];
data[0] = data_array;
data[0] = READ | ADDR_CHANNELDATA(adc_channel);
data[1] = 0;
data[2] = 0;
data[3] = 0;

// write to the communication register
digitalWrite(cs_pin, LOW);
Expand Down
Loading

0 comments on commit f61cdcc

Please sign in to comment.