example: Avoid a fallthrough

This commit is contained in:
Anton Maklakov 2018-12-10 16:17:51 +08:00
parent 240c343805
commit f88f06710e

View 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;