We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf7bd9d commit 53286b8Copy full SHA for 53286b8
lispBM/tests/example_print_bms_data.lisp
@@ -23,10 +23,11 @@
23
24
(let ((f (lambda ()
25
(progn
26
+ (define v-cells (map (lambda (c)(get-bms-val "v_cell" c)) (range 0 (- (get-bms-val "cell_num") 1))))
27
(print (list "V Tot : " (get-bms-val "v_tot")))
- (print (list "V Cells: " (map (lambda (c)(get-bms-val "v_cell" c)) (range 0 (- (get-bms-val "cell_num") 1)))))
28
+ (print (list "V Cells: " v-cells))
29
+ (print (list "foldl : " (foldl + 0 v-cells)))
30
(print (list "ADCs : " (map (lambda (c)(get-adc c)) (iota 1))))
- (print (list "foldl : " (foldl + 0 (map (lambda (c)(get-bms-val "v_cell" c)) (range 0 (- (get-bms-val "cell_num") 1))))))
31
(print " ")
32
(yield (/ 1000000.0 rate))
33
(f)
0 commit comments