mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
example: Avoid a fallthrough
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user