K 10 svn:author V 5 bruno K 8 svn:date V 27 2006-01-12T21:56:37.000000Z K 7 svn:log V 726 * fix bst.status. We mark some bits, but forgot to reset all of them before. The symptom is that the battery inform us its charge and discharge at the same time... * fix bst.rate to correctly output the (dis)charging rate. We'll use the current average over one minute command and not the at_rate command. Note that this method is not correct if the capacity_mode is set, but since we don't set it ourself, it is not a problem. The at_rate do not give the actual rate but is used to compute the estimated time for (dis)charging a battery. We should actually write an estimation of the actual rate using at_rate cmd and then perform a read to the various estimators. Approved by: njl MFC after: 2 days END