Fix battery unittest
commit737fbe02ed716e1c292b803a1fead8efbe27079f
authorPetr Ledvina <ledvinap@gmail.com>
Fri, 30 Jan 2015 11:35:01 +0000 (30 12:35 +0100)
committerPetr Ledvina <ledvinap@gmail.com>
Mon, 23 Feb 2015 08:18:51 +0000 (23 09:18 +0100)
tree4b32720e5483b7c438fc4d994d51f02eae7d3b09
parent3abcbace72645de22140de8e1e5661cc70dcd488
Fix battery unittest

New code uses divition to get cell count, so nonzero vbatmaxcellvoltage is neccessary. Also added remaining fields to avoid future problems (and g++ doesn't support non-trivial initializers)
src/test/unit/battery_unittest.cc