mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
Merge pull request #2103 from N8Fear/cppcheck_new
lint: fix some issues introduced by the latest PRs
This commit is contained in:
commit
c4e961c082
@ -617,6 +617,10 @@ int nrf24l01p_set_power(nrf24l01p_t *dev, int *pwr)
|
||||
|
||||
nrf24l01p_read_reg(dev, REG_RF_SETUP, &rf_setup);
|
||||
|
||||
if (pwr == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (*pwr >= -3) {
|
||||
rf_setup &= ~(3 << 1);
|
||||
rf_setup |= (NRF24L01P_PWR_0DBM << 1);
|
||||
|
||||
@ -306,10 +306,10 @@ int rpl_srh_sendto(const void *buf, uint16_t len, ipv6_addr_t *src, ipv6_addr_t
|
||||
* */
|
||||
void rpl_remove_srh_header(ipv6_hdr_t *ipv6_header, const void *buf, uint8_t nextheader);
|
||||
|
||||
#endif /* RPL_DEFAULT_MOP == RPL_NON_STORING_MODE */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/** @} */
|
||||
#endif /* __RPL_H */
|
||||
|
||||
@ -290,8 +290,9 @@ void rpl_send_DAO_mode(ipv6_addr_t *destination, uint8_t lifetime, bool default_
|
||||
return;
|
||||
}
|
||||
|
||||
/* TODO: take advantage of start_index, by now not used in non-storing mode */
|
||||
/* TODO: take advantage of start_index, by now not used in non-storing mode
|
||||
start_index++;
|
||||
*/
|
||||
|
||||
rpl_dodag_t *my_dodag;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user