Fix pre-commit

This commit is contained in:
Scott Shawcroft 2023-10-16 10:46:11 -07:00
parent 732caedd16
commit 5a19971efd
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
6 changed files with 10 additions and 10 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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];

View File

@ -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);

View File

@ -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);

View File

@ -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) {