example: Avoid a fallthrough
This commit is contained in:
parent
240c343805
commit
f88f06710e
1 changed files with 1 additions and 0 deletions
|
@ -201,6 +201,7 @@ static void parse_gsv(esp_gps_t *esp_gps)
|
||||||
switch (esp_gps->item_num) {
|
switch (esp_gps->item_num) {
|
||||||
case 1: /* total GSV numbers */
|
case 1: /* total GSV numbers */
|
||||||
esp_gps->sat_count = (uint8_t)strtol(esp_gps->item_str, NULL, 10);
|
esp_gps->sat_count = (uint8_t)strtol(esp_gps->item_str, NULL, 10);
|
||||||
|
break;
|
||||||
case 2: /* Current GSV statement number */
|
case 2: /* Current GSV statement number */
|
||||||
esp_gps->sat_num = (uint8_t)strtol(esp_gps->item_str, NULL, 10);
|
esp_gps->sat_num = (uint8_t)strtol(esp_gps->item_str, NULL, 10);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue