1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #15249 from aabadie/pr/tools/typo

tools/codespell: fix new typos and make it fail when typos are found
This commit is contained in:
Francisco 2020-11-03 15:01:20 +01:00 committed by GitHub
commit 3e3da1217d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -56,8 +56,8 @@ if [ -n "${ERRORS}" ]
then
printf "%sThere are typos in the following files:%s\n\n" "${CERROR}" "${CRESET}"
printf "%s\n" "${ERRORS}"
# TODO: return 1 when all typos are fixed
exit 0
printf "If those are false positives, add them to %s\n" "${RIOTTOOLS}/codespell/ignored_words.txt"
exit 1
else
exit 0
fi

View File

@ -101,3 +101,6 @@ files'
# dedup (used in a GNRC header file name) => dedupe
dedup
# circularly (used in "circularly linked list" in clist.h) => circular
circularly

View File

@ -64,7 +64,7 @@ extern "C" {
#define MII_BMCR_POWER_DOWN BIT11 /**< Set to power down PHY */
#define MII_BMCR_ISOLATE BIT10 /**< Set to electrically isolate PHY from
MII (PHY becomes inoperational) */
#define MII_BMCR_AN_RESTART BIT9 /**< Set to restart auto-negotation */
#define MII_BMCR_AN_RESTART BIT9 /**< Set to restart auto-negotiation */
#define MII_BMCR_FULL_DPLX BIT8 /**< Set for full duplex */
#define MII_BMCR_HALF_DPLX (0) /**< Set for half duplex */
#define MII_BMCR_COLL_TEST BIT7 /**< Set to enable collision signal test */

View File

@ -311,7 +311,7 @@ void gnrc_lorawan_calculate_join_mic(const uint8_t *buf, size_t len,
* @param[in] dev_addr the Device Address
* @param[in] fcnt frame counter
* @param[in] dir direction of the packet (0 is uplink, 1 is downlink)
* @param[in] frame pointer to the PSDU frame (witout MIC)
* @param[in] frame pointer to the PSDU frame (without MIC)
* @param[in] nwkskey pointer to the Network Session Key
* @param[out] out calculated MIC
*/