apache-mynewt-bot removed a comment on issue #778: apps: scanner added
URL: https://github.com/apache/mynewt-nimble/pull/778#issuecomment-605878250
 
 
   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is 
[here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### apps/scanner/src/main.c
   <details>
   
   ```diff
   @@ -28,7 +28,7 @@
    /* scan_event() calls scan(), so forward declaration is required */
    static void scan(void);
    
   -static void 
   +static void
    ble_app_set_addr(void)
    {
        ble_addr_t addr;
   @@ -188,8 +188,8 @@
    {
        struct ble_hs_adv_fields fields;
        int rc;
   -    switch (event->type){
   -    /* advertising report has been received during discovery procedure */   
   +    switch (event->type) {
   +    /* advertising report has been received during discovery procedure */
        case BLE_GAP_EVENT_DISC:
            MODLOG_DFLT(ERROR, "Advertising report received!\n");
            rc = ble_hs_adv_parse_fields(&fields, event->disc.data,
   @@ -223,16 +223,16 @@
        scan_params.passive = 1;
        scan_params.filter_duplicates = 1;
        /* performs discovery procedure; value of own_addr_type is hard-coded,
   -    because NRPA is used */
   +       because NRPA is used */
        ble_gap_disc(BLE_OWN_ADDR_RANDOM, 1000, &scan_params, scan_event, NULL);
    }
    
   -static void 
   +static void
    on_sync(void)
    {
        /* Generate a non-resolvable private address. */
        ble_app_set_addr();
   -    
   +
        /* begin scanning */
        scan();
    }
   @@ -243,7 +243,8 @@
        console_printf("Resetting state; reason=%d\n", reason);
    }
    
   -int main(int argc, char **argv)
   +int
   +main(int argc, char **argv)
    {
        /* Initialize all packages. */
        sysinit();
   ```
   
   </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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to