Changed scaling to mA
authorTom Knot <tomasknot@gmail.com>
Wed, 4 Jul 2018 13:09:59 +0000 (15:09 +0200)
committerTom Knot <tomasknot@gmail.com>
Wed, 4 Jul 2018 13:09:59 +0000 (15:09 +0200)
modules/unipi/src/unipi_spi.c
version.txt

index 7ee1a0fe4aff32156d5df3c7ad7001181ebd819d..22251e7a0adc786c1d8c10c64eee6868880897de 100644 (file)
@@ -647,7 +647,7 @@ void neuronspi_spi_iio_stm_ao_set_current(struct iio_dev *indio_dev, struct iio_
        do_div(stm_true_ref, stm_v_inp_ref);
        stm_v_inp_ref = stm_true_ref;
        do_div(stm_true_val, stm_v_inp_ref);
-       do_div(stm_true_val, 10000);
+       do_div(stm_true_val, 10);
        if (stm_true_val > 4095) stm_true_val = 4095;
        regmap_write(n_spi->reg_map, n_spi->regstart_table->stm_ao_val_reg, (unsigned int)stm_true_val);
 }
index 2f28b68a699e5103c7dac19c662a41e1703ea730..895a8ff5d499b13bdfa1ad70d59d6cceb2e3e3c5 100644 (file)
@@ -1 +1 @@
-Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:81(9d17667) LatestCommit:Wed Jul 4 15:03:14 CEST 2018
+Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:82(138e0b6) LatestCommit:Wed Jul 4 15:09:59 CEST 2018