apache-mynewt-bot commented on pull request #2355:
URL: https://github.com/apache/mynewt-core/pull/2355#issuecomment-675026696


   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is 
[here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### hw/sensor/include/sensor/current.h
   <details>
   
   ```diff
   @@ -15,7 +15,7 @@
        float scd_current;
    
        /* Validity */
   -    uint8_t scd_current_is_valid:1;
   +    uint8_t scd_current_is_valid : 1;
    };
    
    #ifdef __cplusplus
   ```
   
   </details>
   
   #### hw/sensor/include/sensor/voltage.h
   <details>
   
   ```diff
   @@ -15,7 +15,7 @@
        float svd_voltage;
    
        /* Validity */
   -    uint8_t svd_voltage_is_valid:1;
   +    uint8_t svd_voltage_is_valid : 1;
    };
    
    #ifdef __cplusplus
   ```
   
   </details>
   
   #### hw/sensor/src/sensor_shell.c
   <details>
   
   ```diff
   @@ -129,84 +129,84 @@
            }
    
            switch (type) {
   -            case SENSOR_TYPE_NONE:
   -                console_printf("    no type: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_ACCELEROMETER:
   -                console_printf("    accelerometer: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_MAGNETIC_FIELD:
   -                console_printf("    magnetic field: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_GYROSCOPE:
   -                console_printf("    gyroscope: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_LIGHT:
   -                console_printf("    light: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_TEMPERATURE:
   -                console_printf("    temperature: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_AMBIENT_TEMPERATURE:
   -                console_printf("    ambient temperature: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_PRESSURE:
   -                console_printf("    pressure: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_PROXIMITY:
   -                console_printf("    proximity: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_RELATIVE_HUMIDITY:
   -                console_printf("    humidity: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_ROTATION_VECTOR:
   -                console_printf("    vector: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_ALTITUDE:
   -                console_printf("    altitude: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_WEIGHT:
   -                console_printf("    weight: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_LINEAR_ACCEL:
   -                console_printf("    accel: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_GRAVITY:
   -                console_printf("    gravity: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_EULER:
   -                console_printf("    euler: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_COLOR:
   -                console_printf("    color: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_VOLTAGE:
   -                console_printf("    voltage: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_CURRENT:
   -                console_printf("    current: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_USER_DEFINED_1:
   -                console_printf("    user defined 1: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_USER_DEFINED_2:
   -                console_printf("    user defined 2: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_USER_DEFINED_3:
   -                console_printf("    user defined 3: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_USER_DEFINED_4:
   -                console_printf("    user defined 4: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_USER_DEFINED_5:
   -                console_printf("    user defined 5: 0x%x\n", type);
   -                break;
   -            case SENSOR_TYPE_USER_DEFINED_6:
   -                console_printf("    user defined 6: 0x%x\n", type);
   -                break;
   -            default:
   -                console_printf("    unknown type: 0x%x\n", type);
   -                break;
   +        case SENSOR_TYPE_NONE:
   +            console_printf("    no type: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_ACCELEROMETER:
   +            console_printf("    accelerometer: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_MAGNETIC_FIELD:
   +            console_printf("    magnetic field: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_GYROSCOPE:
   +            console_printf("    gyroscope: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_LIGHT:
   +            console_printf("    light: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_TEMPERATURE:
   +            console_printf("    temperature: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_AMBIENT_TEMPERATURE:
   +            console_printf("    ambient temperature: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_PRESSURE:
   +            console_printf("    pressure: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_PROXIMITY:
   +            console_printf("    proximity: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_RELATIVE_HUMIDITY:
   +            console_printf("    humidity: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_ROTATION_VECTOR:
   +            console_printf("    vector: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_ALTITUDE:
   +            console_printf("    altitude: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_WEIGHT:
   +            console_printf("    weight: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_LINEAR_ACCEL:
   +            console_printf("    accel: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_GRAVITY:
   +            console_printf("    gravity: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_EULER:
   +            console_printf("    euler: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_COLOR:
   +            console_printf("    color: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_VOLTAGE:
   +            console_printf("    voltage: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_CURRENT:
   +            console_printf("    current: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_USER_DEFINED_1:
   +            console_printf("    user defined 1: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_USER_DEFINED_2:
   +            console_printf("    user defined 2: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_USER_DEFINED_3:
   +            console_printf("    user defined 3: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_USER_DEFINED_4:
   +            console_printf("    user defined 4: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_USER_DEFINED_5:
   +            console_printf("    user defined 5: 0x%x\n", type);
   +            break;
   +        case SENSOR_TYPE_USER_DEFINED_6:
   +            console_printf("    user defined 6: 0x%x\n", type);
   +            break;
   +        default:
   +            console_printf("    unknown type: 0x%x\n", type);
   +            break;
            }
        }
    
   ```
   
   </details>


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to