From 5a19971efda1da7125b7483bc60470f25eb8c157 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Mon, 16 Oct 2023 10:46:11 -0700 Subject: [PATCH] Fix pre-commit --- ports/nrf/bluetooth/ble_drv.c | 2 +- ports/nrf/common-hal/neopixel_write/__init__.c | 2 +- ports/raspberrypi/common-hal/wifi/main.c | 2 +- shared/runtime/pyexec.c | 2 +- supervisor/shared/external_flash/external_flash.c | 2 +- supervisor/shared/web_workflow/web_workflow.c | 10 +++++----- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ports/nrf/bluetooth/ble_drv.c b/ports/nrf/bluetooth/ble_drv.c index 48c40d7082..f362f28e97 100644 --- a/ports/nrf/bluetooth/ble_drv.c +++ b/ports/nrf/bluetooth/ble_drv.c @@ -197,4 +197,4 @@ void SD_EVT_IRQHandler(void) { #endif } -MP_REGISTER_ROOT_POINTER(ble_drv_evt_handler_entry_t *ble_drv_evt_handler_entries); +MP_REGISTER_ROOT_POINTER(ble_drv_evt_handler_entry_t * ble_drv_evt_handler_entries); diff --git a/ports/nrf/common-hal/neopixel_write/__init__.c b/ports/nrf/common-hal/neopixel_write/__init__.c index f5f6335e5e..6e38dca8c1 100644 --- a/ports/nrf/common-hal/neopixel_write/__init__.c +++ b/ports/nrf/common-hal/neopixel_write/__init__.c @@ -334,4 +334,4 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *digitalinout, next_start_raw_ticks = port_get_raw_ticks(NULL) + 4; } -MP_REGISTER_ROOT_POINTER(uint16_t *pixels_pattern_heap); +MP_REGISTER_ROOT_POINTER(uint16_t * pixels_pattern_heap); diff --git a/ports/raspberrypi/common-hal/wifi/main.c b/ports/raspberrypi/common-hal/wifi/main.c index ee673fc93a..81798b0136 100644 --- a/ports/raspberrypi/common-hal/wifi/main.c +++ b/ports/raspberrypi/common-hal/wifi/main.c @@ -24,7 +24,7 @@ static const char *example_2 = "gc.collect()\n" "\n" "print('finish')\n" - ; +; // This array is the MicroPython GC heap. static char heap[8 * 1024]; diff --git a/shared/runtime/pyexec.c b/shared/runtime/pyexec.c index 83e9597130..7b71fe4dea 100644 --- a/shared/runtime/pyexec.c +++ b/shared/runtime/pyexec.c @@ -797,4 +797,4 @@ mp_obj_t pyb_set_repl_info(mp_obj_t o_value) { MP_DEFINE_CONST_FUN_OBJ_1(pyb_set_repl_info_obj, pyb_set_repl_info); #endif -MP_REGISTER_ROOT_POINTER(vstr_t *repl_line); +MP_REGISTER_ROOT_POINTER(vstr_t * repl_line); diff --git a/supervisor/shared/external_flash/external_flash.c b/supervisor/shared/external_flash/external_flash.c index 79c6a6987f..1619409bb4 100644 --- a/supervisor/shared/external_flash/external_flash.c +++ b/supervisor/shared/external_flash/external_flash.c @@ -608,4 +608,4 @@ mp_uint_t supervisor_flash_write_blocks(const uint8_t *src, uint32_t block_num, void MP_WEAK external_flash_setup(void) { } -MP_REGISTER_ROOT_POINTER(uint8_t **flash_ram_cache); +MP_REGISTER_ROOT_POINTER(uint8_t * *flash_ram_cache); diff --git a/supervisor/shared/web_workflow/web_workflow.c b/supervisor/shared/web_workflow/web_workflow.c index ecf83b8bcb..af7398a920 100644 --- a/supervisor/shared/web_workflow/web_workflow.c +++ b/supervisor/shared/web_workflow/web_workflow.c @@ -339,7 +339,7 @@ bool supervisor_start_web_workflow(bool reload) { initialized = pool.base.type == &socketpool_socketpool_type; - if (initialized){ + if (initialized) { if (!common_hal_socketpool_socket_get_closed(&active)) { common_hal_socketpool_socket_close(&active); } @@ -368,10 +368,10 @@ bool supervisor_start_web_workflow(bool reload) { } // Wake polling thread (maybe) socketpool_socket_poll_resume(); - #endif - return true; - } - return false; + #endif + return true; +} +return false; } void web_workflow_send_raw(socketpool_socket_obj_t *socket, const uint8_t *buf, int len) {