mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			fix review comments
							parent
							
								
									8733d52da9
								
							
						
					
					
						commit
						00da0e571a
					
				| 
						 | 
					@ -998,7 +998,7 @@ struct clock_accuracy_t : SafeEnum<clock_accuracy_t, uint8_t >{
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @return Parts per million as a number.
 | 
					     * @return Parts per million as a number.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    uint16_t getPpm() {
 | 
					    uint16_t get_ppm() {
 | 
				
			||||||
        uint16_t ppm = 0;
 | 
					        uint16_t ppm = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        switch(value()) {
 | 
					        switch(value()) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1571,7 +1571,8 @@ void GenericGap::update_random_address()
 | 
				
			||||||
                );
 | 
					                );
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    } else {
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ble::address_t address;
 | 
					    ble::address_t address;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!getUnresolvableRandomAddress(address)) {
 | 
					    if (!getUnresolvableRandomAddress(address)) {
 | 
				
			||||||
| 
						 | 
					@ -1589,7 +1590,6 @@ void GenericGap::update_random_address()
 | 
				
			||||||
    _address_type = LegacyAddressType::RANDOM_PRIVATE_NON_RESOLVABLE;
 | 
					    _address_type = LegacyAddressType::RANDOM_PRIVATE_NON_RESOLVABLE;
 | 
				
			||||||
    _address = address;
 | 
					    _address = address;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool GenericGap::getUnresolvableRandomAddress(ble::address_t& address) {
 | 
					bool GenericGap::getUnresolvableRandomAddress(ble::address_t& address) {
 | 
				
			||||||
    do {
 | 
					    do {
 | 
				
			||||||
| 
						 | 
					@ -2189,7 +2189,7 @@ void GenericGap::on_enhanced_connection_complete(
 | 
				
			||||||
            connection_interval * 1250,
 | 
					            connection_interval * 1250,
 | 
				
			||||||
            connection_latency,
 | 
					            connection_latency,
 | 
				
			||||||
            supervision_timeout * 10,
 | 
					            supervision_timeout * 10,
 | 
				
			||||||
            master_clock_accuracy.getPpm()
 | 
					            master_clock_accuracy.get_ppm()
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _eventHandler->onConnectionComplete(event);
 | 
					        _eventHandler->onConnectionComplete(event);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue