fix compile warnings

This commit is contained in:
devsaurus 2017-05-05 22:51:21 +02:00
parent 0ac7d3d942
commit 1117137363
2 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,7 @@ uint8_t IRAM_ATTR platform_sigma_delta_set_duty( uint8_t channel, int8_t duty )
int platform_adc_exists( uint8_t adc ) { return adc < 2 && adc > 0; }
int platform_adc_channel_exists( uint8_t adc, uint8_t channel ) {
return (adc == 1 && (channel >= 0 && channel < 8));
return (adc == 1 && channel < 8);
}
uint8_t platform_adc_set_width( uint8_t adc, int bits ) {

View File

@ -221,6 +221,7 @@ int32_t vfs_mkdir( const char *name )
#ifdef CONFIG_BUILD_SPIFFS
// not supported
(void)fs_fns;
#endif
#ifdef CONFIG_BUILD_FATFS