Skip to content

Commit ae345c6

Browse files
authored
Fix ADC buffer dimensions in ble_main.c
1 parent c3fd94c commit ae345c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

firmware/application/src/ble_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ BLE_ADVERTISING_DEF(m_advertising);
9090

9191
uint16_t batt_lvl_in_milli_volts = 0;
9292
uint8_t percentage_batt_lvl = 0;
93-
static nrf_saadc_value_t adc_buf[ADC_BUF_SIZE][ADC_BUF_COUNT];
93+
static nrf_saadc_value_t adc_buf[ADC_BUF_COUNT][ADC_BUF_SIZE];
9494
static uint16_t m_conn_handle = BLE_CONN_HANDLE_INVALID; /**< Handle of the current connection. */
9595
static uint16_t m_ble_nus_max_data_len = BLE_GATT_ATT_MTU_DEFAULT - 3; /**< Maximum length of data (in bytes) that can be transmitted to the peer by the Nordic UART service module. */
9696
lf_adc_callback_t m_lf_adc_callback = NULL;
@@ -806,4 +806,4 @@ void unregister_lf_adc_callback(void) {
806806
nrfx_saadc_uninit();
807807
adc_configure();
808808
m_lf_adc_callback = NULL;
809-
}
809+
}

0 commit comments

Comments
 (0)