tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Pressure sensors



In article <20181231163520.GA42728%gmail.com@localhost>,
Artturi Alm  <artturi.alm%gmail.com@localhost> wrote:
>Hi,
>
>i'd like to have the functionality given by the diff below, before
>cleaning up another diff making use of it.
>
>with "# envstat -Td bmx280temp0 -i 1" i get output like:
>
>               Current      Max      Min      Avg   Unit
>	       temperature:    25.070   25.070   25.060   25.067    degC
>	          pressure:   100.860  100.867  100.856  100.861     kPa
>
>and with "# envstat -d bmx280temp0":
>
>               Current  CritMax  WarnMax  WarnMin  CritMin  Unit
>	       temperature:    25.080                                      degC
>	          pressure:   100.865                                       kPa
>
>my sensor does fill ->value_cur with mPa, so pressure does fit into the
>"everything else"-else{} with ->cur_value / 1000000.0 for printout in kPa.
>
>did i miss anything?

LGTM...

christos



Home | Main Index | Thread Index | Old Index