Fix a few warnings
This commit is contained in:
parent
61c1293611
commit
cccb869423
|
@ -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){
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "basic/basic.h"
|
||||
#include "lcd/render.h"
|
||||
#include "filesystem/ff.h"
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
|
|
Loading…
Reference in New Issue