enable most warning option, fix all warnings
This commit is contained in:
		| @@ -295,7 +295,7 @@ void led_state(uint32_t state) | ||||
|     } else if (temp_color_active) { | ||||
|         final_color = (uint8_t*)&rgb_color; | ||||
|     } | ||||
|     #if LED_NEOPIXEL || defined(LED_RGB_RED_PIN) | ||||
|     #if defined(LED_NEOPIXEL) || defined(LED_RGB_RED_PIN) | ||||
|     if (final_color != NULL) { | ||||
|         neopixel_write(final_color); | ||||
|     } | ||||
|   | ||||
| @@ -6,11 +6,19 @@ | ||||
| #define NRFX_POWER_DEFAULT_CONFIG_IRQ_PRIORITY  7 | ||||
|  | ||||
| #define NRFX_CLOCK_ENABLED  0 | ||||
|  | ||||
| #define NRFX_NVMC_ENABLED   1 | ||||
|  | ||||
| #define NRFX_PRS_ENABLED    0 | ||||
|  | ||||
| #define NRFX_PWM_ENABLED    0 | ||||
| #define NRFX_PWM0_ENABLED   0 | ||||
| #define NRFX_PWM1_ENABLED   0 | ||||
| #define NRFX_PWM2_ENABLED   0 | ||||
| #define NRFX_PWM3_ENABLED   0 | ||||
|  | ||||
| // UART | ||||
| #ifdef NRF52832_XXAA | ||||
|  | ||||
| #define NRFX_UART_ENABLED   1 | ||||
| #define NRFX_UART0_ENABLED  1 | ||||
|  | ||||
|   | ||||
| @@ -78,10 +78,12 @@ | ||||
| #define UART_DEFAULT_CONFIG_IRQ_PRIORITY   7 | ||||
| #define UART_EASY_DMA_SUPPORT              1 | ||||
| #define UART_LEGACY_SUPPORT                1 | ||||
| #define UART_CONFIG_LOG_ENABLED            0 | ||||
|  | ||||
| #define UART0_ENABLED                      1 | ||||
| #define UART0_CONFIG_USE_EASY_DMA          0 | ||||
|  | ||||
|  | ||||
| //========================================================== | ||||
| // <e> APP_UART_ENABLED - app_uart - UART driver | ||||
| //========================================================== | ||||
|   | ||||
| @@ -311,10 +311,7 @@ int write_block(uint32_t block_no, uint8_t *data, bool quiet, WriteState *state) | ||||
|  | ||||
|     if ((bl->flags & UF2_FLAG_NOFLASH) || bl->payloadSize > 256 || (bl->targetAddr & 0xff) || | ||||
|         bl->targetAddr < USER_FLASH_START || bl->targetAddr + bl->payloadSize > USER_FLASH_END) { | ||||
| #if USE_DBG_MSC | ||||
|         if (!quiet) | ||||
|             logval("invalid target addr", bl->targetAddr); | ||||
| #endif | ||||
|  | ||||
|         NRF_LOG_WARNING("Skip block at %x", bl->targetAddr); | ||||
|         // this happens when we're trying to re-flash CURRENT.UF2 file previously | ||||
|         // copied from a device; we still want to count these blocks to reset properly | ||||
|   | ||||
		Reference in New Issue
	
	Block a user