Skip to content

Commit 37e3766

Browse files
committed
Fix format issues
1 parent b62799a commit 37e3766

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ports/espressif/boards/mixgo_ce_serial/board.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ void board_init(void) {
3939
common_hal_never_reset_pin(&pin_GPIO44);
4040
#endif /* DEBUG */
4141

42-
mp_import_stat_t stat_b = mp_import_stat("boot.py");
43-
if (stat_b != MP_IMPORT_STAT_FILE){
44-
FATFS *fatfs = &((fs_user_mount_t *) MP_STATE_VM(vfs_mount_table)->obj)->fatfs;
42+
mp_import_stat_t stat_b = mp_import_stat("boot.py");
43+
if (stat_b != MP_IMPORT_STAT_FILE) {
44+
FATFS *fatfs = &((fs_user_mount_t *)MP_STATE_VM(vfs_mount_table)->obj)->fatfs;
4545
FIL fs;
4646
UINT char_written = 0;
4747
const byte buffer[] = "#Serial port upload mode\nimport storage\nstorage.remount(\"/\", False)\nstorage.disable_usb_drive()\n";
4848
// Create or modify existing boot.py file
4949
f_open(fatfs, &fs, "/boot.py", FA_WRITE | FA_CREATE_ALWAYS);
5050
f_write(&fs, buffer, sizeof(buffer) - 1, &char_written);
5151
f_close(&fs);
52-
//Delete code.Py, use main.py
52+
// Delete code.Py, use main.py
5353
mp_import_stat_t stat_c = mp_import_stat("code.py");
54-
if (stat_c == MP_IMPORT_STAT_FILE){
54+
if (stat_c == MP_IMPORT_STAT_FILE) {
5555
f_unlink(fatfs,"/code.py");
5656
}
5757
}
58-
58+
5959
}
6060

6161
bool board_requests_safe_mode(void) {

ports/espressif/boards/mixgo_ce_serial/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
USB_VID = 0x303A
2-
USB_PID = 0x80FC
2+
USB_PID = 0x80FD
33
USB_PRODUCT = "MixGo CE"
44
USB_MANUFACTURER = "Espressif"
55

0 commit comments

Comments
 (0)