]> granicus.if.org Git - esp-idf/commitdiff
example: Avoid a fallthrough
authorAnton Maklakov <anton@espressif.com>
Mon, 10 Dec 2018 08:17:51 +0000 (16:17 +0800)
committerAnton Maklakov <anton@espressif.com>
Thu, 13 Dec 2018 04:29:27 +0000 (12:29 +0800)
examples/peripherals/uart/nmea0183_parser/main/nmea_parser.c

index 192101297f0765d3c92a9a489d410889eafd4de1..eaa69d278bc79bed69dc9316c43248b8610cb593 100644 (file)
@@ -201,6 +201,7 @@ static void parse_gsv(esp_gps_t *esp_gps)
     switch (esp_gps->item_num) {
     case 1: /* total GSV numbers */
         esp_gps->sat_count = (uint8_t)strtol(esp_gps->item_str, NULL, 10);
+        break;
     case 2: /* Current GSV statement number */
         esp_gps->sat_num = (uint8_t)strtol(esp_gps->item_str, NULL, 10);
         break;