mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
DLF: Import setpoint changes.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
parent
366ad82a98
commit
f0303802dd
1 changed files with 8 additions and 2 deletions
|
@ -3589,11 +3589,17 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
|
|||
switch (ptr[4]) {
|
||||
case 1:
|
||||
strcpy(cur_event.name, "Setpoint Manual");
|
||||
// There is a setpoint value somewhere...
|
||||
cur_event.value = ptr[6];
|
||||
sample_start();
|
||||
cur_sample->setpoint.mbar = ptr[6] * 10;
|
||||
sample_end();
|
||||
break;
|
||||
case 2:
|
||||
strcpy(cur_event.name, "Setpoint Auto");
|
||||
// There is a setpoint value somewhere...
|
||||
cur_event.value = ptr[6];
|
||||
sample_start();
|
||||
cur_sample->setpoint.mbar = ptr[6] * 10;
|
||||
sample_end();
|
||||
switch (ptr[7]) {
|
||||
case 0:
|
||||
strcat(cur_event.name, " Manual");
|
||||
|
|
Loading…
Reference in a new issue