From 6c9a758648016412108f56c0f58044b6299d5bd3 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 1 Jan 2021 21:25:58 +0100 Subject: [PATCH] Implement the rbt sample The name of the RBT (Remaining Bottom Time) sample was taken from the Uwatec dive computers. The actual definition depends on the dive computer, but it usually corresponds to the air time remaining (with or without some additional factors taken into account). --- src/suunto_eonsteel_parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/suunto_eonsteel_parser.c b/src/suunto_eonsteel_parser.c index 33a6b3d..7a4c032 100644 --- a/src/suunto_eonsteel_parser.c +++ b/src/suunto_eonsteel_parser.c @@ -551,7 +551,8 @@ static void sample_gastime(struct sample_data *info, short gastime) if (gastime < 0) return; - // Hmm. We have no good way to report airtime remaining + sample.rbt = gastime / 60; + if (info->callback) info->callback (DC_SAMPLE_RBT, sample, info->userdata); } /*