Negative air pressure

Hello Ruuvi,

I’m using Ruuvi Tag updated to support dataformat_05.md. I’m able to parse all data but get a negative air pressure. But the iphone application shows the right value.
The data
9904 05 0F3C 4524 C0E3 0008001C040090765F22D5 F98ACA2DC81C
Manuf Format Temp Hum. Airp Accelerations,Power,Counts MAC
0xC0E3 = 49379; 49379 - 50000(Offset) = -621 Pa
Where is the issue?

dataformat_05.md

Hello,

The parser should have + 50000 pA to compensate the offset while encoding

Thank’s. I forgot to cast the short int to int in advanced. That confused me.