oops fix bug

adc
Ondřej Hruška 7 years ago
parent 10cc13bc82
commit 0a33551474
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      units/adc/_adc_init.c

@ -134,7 +134,7 @@ error_t UADC_init(Unit *unit)
return E_BAD_CONFIG; return E_BAD_CONFIG;
} }
if (priv->dma_buffer_size < priv->nb_channels*2*2) { if (priv->buffer_size < priv->nb_channels*2*2) {
dbg("Insufficient buf size"); dbg("Insufficient buf size");
return E_BAD_CONFIG; return E_BAD_CONFIG;
} }

Loading…
Cancel
Save