Skip to content

Commit 0e0ae97

Browse files
swegenerdpgeorge
authored andcommitted
stmhal: Declare variables extern in include files
Else we end up with several instances of the variable. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
1 parent 1a5a6d1 commit 0e0ae97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stmhal/file.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
const byte fresult_to_errno_table[20];
27+
extern const byte fresult_to_errno_table[20];
2828

2929
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_open_obj);

stmhal/usb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef enum {
4141
USB_STORAGE_MEDIUM_SDCARD,
4242
} usb_storage_medium_t;
4343

44-
const mp_obj_type_t pyb_usb_vcp_type;
44+
extern const mp_obj_type_t pyb_usb_vcp_type;
4545

4646
void pyb_usb_init0(void);
4747
void pyb_usb_dev_init(usb_device_mode_t mode, usb_storage_medium_t medium);

0 commit comments

Comments
 (0)