#include <stdlib.h>
#define __USE_XOPEN
#include <time.h>
-#include <regex.h>
#include "dive.h"
#include "uemis.h"
{
double atm, cm;
- atm = (value / 100.0) / 1.01325;
+ atm = bar_to_atm(value / 100.0);
cm = 100 * atm + 0.5;
return( (cm > 0) ? 10 * (long)cm : 0);
}
if (flags[4] & 0x08)
add_event(dive, sample->time.seconds, 0, 0, 0, "RGT Alert");
if (flags[4] & 0x40)
- add_event(dive, sample->time.seconds, 0, 0, 0, "Tank Change Suggest");
+ add_event(dive, sample->time.seconds, 0, 0, 0, "Tank Change Suggested");
if (flags[4] & 0x80)
add_event(dive, sample->time.seconds, 0, 0, 0, "Depth Limit Exceeded");
if (flags[5] & 0x01)
gasoffset = template = *(uint8_t *)(data+115);
if (template == 3)
gasoffset = 4;
+ if (template == 0)
+ template = 1;
for (i = 0; i < template; i++) {
float volume = *(float *)(data+116+25*(gasoffset + i)) * 1000.0;
/* uemis always assumes a working pressure of 202.6bar (!?!?) - I first thought