apache-mynewt-bot commented on PR #1338:
URL: https://github.com/apache/mynewt-nimble/pull/1338#issuecomment-1230034916

   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is 
[here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### apps/ext_central/src/main.c
   <details>
   
   ```diff
   @@ -67,8 +67,7 @@
                        event->disconnect.reason);
            if (current_scan == 2) {
                current_scan = 0;
   -        }
   -        else {
   +        } else {
                ++current_scan;
            }
            resume_scan();
   @@ -118,8 +117,7 @@
        switch (event->type) {
        /* advertising report has been received during discovery procedure */
        case BLE_GAP_EVENT_EXT_DISC:
   -        if (event->ext_disc.data_status == 
BLE_GAP_EXT_ADV_DATA_STATUS_COMPLETE)
   -        {
   +        if (event->ext_disc.data_status == 
BLE_GAP_EXT_ADV_DATA_STATUS_COMPLETE) {
                ble_hs_adv_parse_fields(&parsed_fields, event->ext_disc.data,
                                        event->ext_disc.length_data);
    
   @@ -141,7 +139,8 @@
                }
    
                if (uuid_cmp_result == 0) {
   -                MODLOG_DFLT(INFO, "UUID fits, primary phy: %d, secondary 
phy: %d connecting...\n", event->ext_disc.prim_phy, event->ext_disc.sec_phy);
   +                MODLOG_DFLT(INFO, "UUID fits, primary phy: %d, secondary 
phy: %d connecting...\n",
   +                            event->ext_disc.prim_phy, 
event->ext_disc.sec_phy);
                    rc = ble_gap_disc_cancel();
                    MODLOG_DFLT(ERROR, "ble_gap_disc_cancel_rc = %d\n", rc);
                    if (current_scan == SCAN_FOR_CODED) {
   ```
   
   </details>
   
   #### apps/ext_peripheral/src/main.c
   <details>
   
   ```diff
   @@ -47,10 +47,12 @@
                                             0xab, 0x4b, 0x99, 0x70, 0xe0, 
0x69, 0x65, 0xb7)},
        {
            .predef_uuid = BLE_UUID128_INIT(0x89, 0x53, 0xff, 0x58, 0x00, 0x10, 
0x2f, 0xb2,
   -                                        0xad, 0x4b, 0x9f, 0x35, 0xde, 0xac, 
0x15, 0x79)},
   +                                        0xad, 0x4b, 0x9f, 0x35, 0xde, 0xac, 
0x15, 0x79)
   +    },
        {
            .predef_uuid = BLE_UUID128_INIT(0x1d, 0x8e, 0x07, 0x24, 0xcb, 0x33, 
0x0a, 0xa5,
   -                                        0x89, 0x47, 0x1b, 0xef, 0x74, 0x51, 
0x4e, 0xf7)}
   +                                        0x89, 0x47, 0x1b, 0xef, 0x74, 0x51, 
0x4e, 0xf7)
   +    }
    };
    
    /* ext_scan_event() calls these functions, so forward declaration is 
required */
   ```
   
   </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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to