From c845d1fd340f1ce33629dc76ce5134c5dcbf6eb5 Mon Sep 17 00:00:00 2001 From: Rocco Marco Date: Sun, 12 Apr 2015 17:39:52 +0200 Subject: Added email contact Fixed Bug on chDbgAssert() passing 2 arguments instead of 3 --- os/various/devices_lib/nrf24l01.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'os/various/devices_lib/nrf24l01.c') diff --git a/os/various/devices_lib/nrf24l01.c b/os/various/devices_lib/nrf24l01.c index 34d8bff..31e4513 100644 --- a/os/various/devices_lib/nrf24l01.c +++ b/os/various/devices_lib/nrf24l01.c @@ -1,6 +1,6 @@ /* - Pretty LAYer for ChibiOS/RT - Copyright (C) 2014 Rocco Marco Guglielmi - + Pretty LAYer for ChibiOS/RT - Copyright (C) 2015 Rocco Marco Guglielmi + This file is part of PLAY for ChibiOS/RT. PLAY is free software; you can redistribute it and/or modify @@ -21,7 +21,9 @@ Special thanks to Giovanni Di Sirio for teachings, his moral support and friendship. Note that some or every piece of this file could be part of the ChibiOS project that is intellectual property of Giovanni Di Sirio. - Please refer to ChibiOS/RT license before use it. + Please refer to ChibiOS/RT license before use this file. + + For suggestion or Bug report - roccomarco.guglielmi@playembedded.org */ /** @@ -123,7 +125,7 @@ NRF24L01_status_t nrf24l01WriteRegister(SPIDriver *spip, uint8_t reg, /* Reserved register must not be written, according to the datasheet * this could permanently damage the device. */ - chDbgAssert(FALSE, "lg3d20WriteRegister(), #1", "reserved register"); + chDbgAssert(FALSE, "lg3d20WriteRegister(), reserved register"); case NRF24L01_AD_OBSERVE_TX: case NRF24L01_AD_CD: case NRF24L01_AD_RX_ADDR_P0: @@ -182,7 +184,7 @@ NRF24L01_status_t nrf24l01WriteAddress(SPIDriver *spip, uint8_t reg, unsigned i; if(addlen > NRF24L01_MAX_ADD_LENGHT) { - chDbgAssert(FALSE, "nrf24l01WriteAddress(), #1", "wrong address length"); + chDbgAssert(FALSE, "nrf24l01WriteAddress(), wrong address length"); return 0; } txbuf[0] = (NRF24L01_CMD_WRITE | reg); @@ -197,7 +199,7 @@ NRF24L01_status_t nrf24l01WriteAddress(SPIDriver *spip, uint8_t reg, /* Reserved register must not be written, according to the datasheet * this could permanently damage the device. */ - chDbgAssert(FALSE, "nrf24l01WriteAddress(), #1", "reserved register"); + chDbgAssert(FALSE, "nrf24l01WriteAddress(), reserved register"); case NRF24L01_AD_OBSERVE_TX: case NRF24L01_AD_CD: case NRF24L01_AD_CONFIG: -- cgit v1.2.3