Skip to content

Conversation

@tannewt
Copy link
Member

This should help prevent hard crashes when an mpy file is corrupt.

Rollback HID to save string space and remove board mapping for default buses that don't exist.
@tannewttannewt requested a review from dhalbertJune 27, 2019 00:39
Copy link
Collaborator

@dhalbertdhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

}
}
raise_corrupt_mpy();
return MP_OBJ_FROM_PTR(&mp_const_none_obj);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return value is a size_t, not an mp_obj_t. If the compiler is forcing you to return something, even though it will never get executed, just return 0, I'd say.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, confused by diff listing with missing lines.

@dhalbertdhalbert merged commit c562b19 into adafruit:4.0.xJun 27, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tannewt@dhalbert