summaryrefslogtreecommitdiffstats
path: root/core/import-shearwater.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-12-31 06:21:53 +0200
committerGravatar Miika Turkia <miika.turkia@gmail.com>2018-12-31 06:21:53 +0200
commit5930cb52de2331523c05be26f50cf576be9b2335 (patch)
tree81203a5d2edbe5f71f90c9da24d60d26579b8df2 /core/import-shearwater.c
parent01365b8c4b2cd73039f41f5d3f433c5d922fcf34 (diff)
downloadsubsurface-5930cb52de2331523c05be26f50cf576be9b2335.tar.gz
Grab correct setpoint on Shearwater cloud import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core/import-shearwater.c')
-rw-r--r--core/import-shearwater.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/import-shearwater.c b/core/import-shearwater.c
index 1a96c3e64..67078e875 100644
--- a/core/import-shearwater.c
+++ b/core/import-shearwater.c
@@ -324,8 +324,8 @@ static int shearwater_cloud_dive(void *param, int columns, char **data, char **c
struct parser_state *state = (struct parser_state *)param;
sqlite3 *handle = state->sql_handle;
char *err = NULL;
- char get_profile_template[] = "select currentTime,currentDepth,waterTemp,averagePPO2,currentNdl,CNSPercent,decoCeiling,firstStopDepth,firstStopTime from dive_log_records where diveLogId=%ld";
- char get_profile_template_ai[] = "select currentTime,currentDepth,waterTemp,averagePPO2,currentNdl,CNSPercent,decoCeiling,aiSensor0_PressurePSI,aiSensor1_PressurePSI,firstStopDepth,firstStopTime from dive_log_records where diveLogId = %ld";
+ char get_profile_template[] = "select currentTime,currentDepth,waterTemp,currentPPO2SetPoint,currentNdl,CNSPercent,decoCeiling,firstStopDepth,firstStopTime from dive_log_records where diveLogId=%ld";
+ char get_profile_template_ai[] = "select currentTime,currentDepth,waterTemp,currentPPO2SetPoint,currentNdl,CNSPercent,decoCeiling,aiSensor0_PressurePSI,aiSensor1_PressurePSI,firstStopDepth,firstStopTime from dive_log_records where diveLogId = %ld";
char get_cylinder_template[] = "select fractionO2 / 100,fractionHe / 100 from dive_log_records where diveLogId = %ld group by fractionO2,fractionHe";
char get_changes_template[] = "select a.currentTime,a.fractionO2 / 100,a.fractionHe /100 from dive_log_records as a,dive_log_records as b where (a.id - 1) = b.id and (a.fractionO2 != b.fractionO2 or a.fractionHe != b.fractionHe) and a.diveLogId=b.divelogId and a.diveLogId = %ld";
char get_mode_template[] = "select distinct currentCircuitSetting from dive_log_records where diveLogId = %ld";