mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Dumb error fix
This commit is contained in:
@@ -37,6 +37,8 @@ void Boot::setMode(BootMode mode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Boot::busError() {
|
void Boot::busError() {
|
||||||
|
// Ion::Device::Flash::DisableInternalProtection();
|
||||||
|
// Ion::Device::Flash::EraseSector(0);
|
||||||
if (config()->isBooting()) {
|
if (config()->isBooting()) {
|
||||||
config()->slot()->boot();
|
config()->slot()->boot();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ static void close_protection() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void enable_protection_at(int i) {
|
static void disable_protection_at(int i) {
|
||||||
if (!FLASH.OPTCR()->getLOCK()) {
|
if (!FLASH.OPTCR()->getLOCK()) {
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
@@ -78,7 +78,7 @@ static void enable_protection_at(int i) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void disable_protection_at(int i) {
|
static void enable_protection_at(int i) {
|
||||||
if (!FLASH.OPTCR()->getLOCK()) {
|
if (!FLASH.OPTCR()->getLOCK()) {
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user