#1 Voltage at 0 Volt causes floating point exception

open
nobody
None
5
2010-03-28
2009-11-05
Anonymous
No

My laptop has a dead battery which is no longer charging (or maybe something else is broken): acpi reports 0 Volt which leads to divisions by zero in some places.

I added 3 lines in acpi.c to set back the voltage value to -1 (unknown state) in that case.

Discussion

  • Nobody/Anonymous

    patch to set back voltage to -1when no valid voltage value is returned

     
  • Michael Meskes

    Michael Meskes - 2010-03-28
    • status: open --> closed
     
  • Michael Meskes

    Michael Meskes - 2010-03-28

    This was already fixed in 1.4 I think.

     
  • Michael Meskes

    Michael Meskes - 2010-03-28

    Oops, it was just fixed in git, will release 1.5 with this patch real soon.

     
  • Michael Meskes

    Michael Meskes - 2010-03-28
    • status: closed --> open
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks