From 1a941c3ea44ede73f06d03deeeedc71dafc9e5b9 Mon Sep 17 00:00:00 2001 From: Evan Cortens Date: Tue, 18 Mar 2025 10:06:32 -0600 Subject: [PATCH] address issue with Zwift .fit file exports, where dev fields appear to be malformed --- R/dataFormatting.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/dataFormatting.R b/R/dataFormatting.R index a43bc8b..bb672a1 100644 --- a/R/dataFormatting.R +++ b/R/dataFormatting.R @@ -273,6 +273,10 @@ ) ) + if(ncol(message_table) == 0) { + return(NULL) + } + for(i in ncol(message_table)) { attributes(message_table[[i]]) <- list(units = units[i]) }