From 65ef99981fafc45e8deaf408f44feb9b42f56fec Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 5 Oct 2018 14:44:33 -0700 Subject: [PATCH] Aqualung i770R: _really_ fix the gas mix parsing Commit fac3c8ff1487 ("Aqualung i770R: fix up gas mix parsing") was supposed to fix gasmix parsing for the i770R, but because Janice's patch didn't apply as-is, I had just redone it by hand, and in the process copied the wrong o2_offset for the i770R, giving (not surprisingly) the wrong results. This just fixes my copy-paste error to what Janice actually had originally. Mea culpa. Signed-off-by: Linus Torvalds --- src/oceanic_atom2_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oceanic_atom2_parser.c b/src/oceanic_atom2_parser.c index 4882122..51df923 100644 --- a/src/oceanic_atom2_parser.c +++ b/src/oceanic_atom2_parser.c @@ -464,7 +464,7 @@ oceanic_atom2_parser_cache (oceanic_atom2_parser_t *parser) o2_offset = 0x24; ngasmixes = 4; } else if (parser->model == I770R) { - o2_offset = 0x24; + o2_offset = 0x30; ngasmixes = 4; pO2_offset = 2; } else {