mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-21 15:09:03 +00:00
Touch: Migrate touch calibration to persistent memory.
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
|
||||
#include "irq_controls.hpp"
|
||||
|
||||
#include "portapack_persistent_memory.hpp"
|
||||
using namespace portapack;
|
||||
|
||||
namespace ui {
|
||||
|
||||
TouchCalibrationView::TouchCalibrationView(
|
||||
@@ -151,7 +154,7 @@ void TouchCalibrationView::touch_complete() {
|
||||
|
||||
void TouchCalibrationView::on_ok() {
|
||||
if( phase == Phase::Success ) {
|
||||
touch::set_calibration(calibration);
|
||||
persistent_memory::set_touch_calibration(calibration);
|
||||
nav.pop();
|
||||
}
|
||||
if( phase == Phase::Failure ) {
|
||||
|
||||
Reference in New Issue
Block a user