diff --git a/lib/bluetooth.dart b/lib/bluetooth.dart index 3893d1a..b17a9c1 100644 --- a/lib/bluetooth.dart +++ b/lib/bluetooth.dart @@ -205,7 +205,7 @@ class BrilliantDevice { } // Don't split on an escape character - if (file[index + chunkSize - 1] == '\\') { + while (file[index + chunkSize - 1] == '\\') { chunkSize -= 1; }