Fix a few warnings

This commit is contained in:
Stefan `Sec` Zehl 2011-08-01 05:22:24 +02:00
parent 61c1293611
commit cccb869423
6 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,7 @@
#include <sysinit.h>
#include "basic/basic.h"
#include "lcd/display.h"
#include "lcd/print.h"
#include "filesystem/ff.h"
#include "basic/random.h"
@ -32,7 +33,7 @@ char nickfont[FILENAMELEN];
void applyConfig(){
if(GLOBAL(lcdcontrast)>0)
lcdSetContrast(GLOBAL(lcdcontrast));
return 0;
return;
};
int saveConfig(void){

View File

@ -14,8 +14,6 @@ void LightCheck(void){
int iocon;
char iodir;
int value;
iocon=IOCON_PIO1_11;
// iodir=gpioGetDir(RB_LED3);
iodir= (GPIO_GPIO1DIR & (1 << (RB_LED3) ))?1:0;
@ -28,10 +26,6 @@ void LightCheck(void){
gpioSetDir(RB_LED3, iodir);
IOCON_PIO1_11=iocon;
if(threshold==0){ // uninitialized?
threshold=320;
};
if(_isnight && light/SAMPCT>(threshold+RANGE))
_isnight=0;

View File

@ -1,6 +1,7 @@
#include <stdint.h>
#include "random.h"
#include "xxtea.h"
#include "core/adc/adc.h"
#define STATE_SIZE 8
uint32_t state[STATE_SIZE];

View File

@ -108,7 +108,7 @@ int filetransfer_receive(uint8_t *mac, uint32_t const k[4])
}
lcdRefresh();
if( fres < 0 )
return;
return 1;
//nrf_set_rx_mac(0, 32, 5, macbuf);
xxtea_decode_words((uint32_t *)buf, wordcount, k);

View File

@ -1,6 +1,7 @@
#include "rftransfer.h"
#include "nrf24l01p.h"
#include <basic/basic.h>
#include <basic/random.h>
#include <core/systick/systick.h>
#include <lcd/print.h>

View File

@ -5,6 +5,7 @@
#include "basic/basic.h"
#include "lcd/render.h"
#include "filesystem/ff.h"
/**************************************************************************/