mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 03:56:44 -04:00
Touch: Migrate touch calibration to persistent memory.
This commit is contained in:
parent
aa1b8f63fc
commit
c424bf08f3
5 changed files with 34 additions and 22 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue