Revert "Add missing break in switch"
authorMichael Gernoth <michael@gernoth.net>
Sun, 6 Sep 2020 10:23:01 +0000 (12:23 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 6 Sep 2020 10:23:53 +0000 (12:23 +0200)
and add comment that there should not be a break at this point.

This reverts commit ee8d07d894fa10e47b4441a4db473496c701cb0f.

hmland.c

index 8651957..fd17e85 100644 (file)
--- a/hmland.c
+++ b/hmland.c
@@ -437,7 +437,7 @@ static int hmlan_parse_one(uint8_t *cmd, int last, void *data)
                        parse_part_in(&inpos, (last-(inpos-cmd)), &outpos, (sizeof(out)-(outpos-out)), 0);
                        parse_part_in(&inpos, (last-(inpos-cmd)), &outpos, (sizeof(out)-(outpos-out)), 0);
                        parse_part_in(&inpos, (last-(inpos-cmd)), &outpos, (sizeof(out)-(outpos-out)), FLAG_LENGTH_BYTE);
-                       break;
+                       // Fallthrough to default expected, no break here
                default:
                        parse_part_in(&inpos, (last-(inpos-cmd)), &outpos, (sizeof(out)-(outpos-out)), FLAG_IGNORE_COMMAS);
                        break;
Impressum, Datenschutz