forked from Omega-Numworks/Omega
-
Notifications
You must be signed in to change notification settings - Fork 65
USB Protection Improvement and ExamMode Fix #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
devdl11
wants to merge
23
commits into
UpsilonNumworks:upsilon-dev
from
devdl11:upsilon-merge-upstream
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
aef43bf
USB Protection correction
devdl11 5c7e4be
Indentation Fix
devdl11 6f47e94
Indentation Fix
devdl11 e3740cb
Indentation Fix
devdl11 d8dbd1f
Add osType in platform_info (Upsilon Magic) and ⚠⚠ **DFU COMMAND DISA…
devdl11 de478a3
Merge remote-tracking branch 'origin/uspilon-dev-usbfix' into uspilon…
devdl11 2623637
@Yaya-Cout settings suggestion ;-)
devdl11 762be7b
Indentation Correction
devdl11 8c3398d
CLion mistake fix
devdl11 65419f5
dfu_interface.h indentation correction
devdl11 c425a8c
dfu_interface.h indentation correction
devdl11 3b5333c
dfu_interface.h indentation correction
devdl11 726fd3e
Foundation
devdl11 e8d75aa
Avancement ExamMode
devdl11 fb428ca
Mode Examen Terminé, Patch ld nécessaire pour device
devdl11 0293797
Exam Improvement And DFU fix
devdl11 c7b24be
Exam Fix
devdl11 a412f38
Merge branch 'upsilon-dev-examdev2' into upsilon-merge-upstream
devdl11 6b4d21f
Correcting Upstream Merge errors
devdl11 ef57ed7
LD fix N0110
devdl11 473b83b
LD test Github Fix
devdl11 674b8af
Fix Sequences App Post Exam Mode
devdl11 b06f4f8
Review
devdl11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| #include <cmath> | ||
| #include <poincare/preferences.h> | ||
| #include <apps/i18n.h> | ||
| #include <ion.h> | ||
|
|
||
| using namespace Poincare; | ||
| using namespace Shared; | ||
|
|
@@ -112,7 +113,11 @@ GlobalPreferences::ExamMode ExamModeController::examMode() { | |
| GlobalPreferences::ExamMode mode = GlobalPreferences::sharedGlobalPreferences()->tempExamMode(); | ||
| if (GlobalPreferences::sharedGlobalPreferences()->isInExamMode()) { | ||
| // If the exam mode is already on, this re-activate the same exam mode | ||
| // #if ION_SIMULATOR_FILES | ||
| // mode = GlobalPreferences::ExamMode::Off; | ||
| // #else | ||
| mode = GlobalPreferences::sharedGlobalPreferences()->examMode(); | ||
| // #endif | ||
|
Comment on lines
+116
to
+120
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think these comments can be removed. |
||
| } | ||
| return mode; | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -152,7 +152,6 @@ bool DFUInterface::processUploadRequest(SetupPacket *request, uint8_t *transferB | |||
| } else { | ||||
| /* We decided to never protect Read operation. Else we would have to check | ||||
| * here it is not protected before reading. */ | ||||
|
|
||||
| // Compute the reading address | ||||
| uint32_t readAddress = (request->wValue() - 2) * Endpoint0::MaxTransferSize + m_addressPointer; | ||||
| // Copy the requested memory zone into the transfer buffer. | ||||
|
|
@@ -217,7 +216,7 @@ void DFUInterface::eraseMemoryIfNeeded() { | |||
| if (m_erasePage < 0) { | ||||
| return; | ||||
| } | ||||
|
|
||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove trailing space…
Suggested change
|
||||
| willErase(); | ||||
|
|
||||
| #if 0 // We don't erase now the flash memory to avoid crash if writing is refused | ||||
|
|
||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.