File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -129,17 +129,19 @@ void ReadRFIDlist(void) {
129129 uint8_t initialized = 0 ;
130130 unsigned char RFIDold[600 ]; // old RFID buffer
131131
132- if (preferences.begin (" RFIDlist" , true ) ) { // read only
132+ if (preferences.begin (" RFIDlist" , false ) ) { // read/write
133133 initialized = preferences.getUChar (" RFIDinit" , 0 );
134134 switch (initialized) {
135135 case 1 : // we were initialized to old 120 bytes mode
136136 preferences.getBytes (" RFID" , RFIDold, 120 ); // read 120 bytes from storage
137137 // we are now going to convert from RFIDold 120bytes to RFIDlist 700bytes
138138 expandUIDArray (RFIDold, RFIDlist, 120 );
139139 preferences.remove (" RFID" );
140+ preferences.end ();
140141 WriteRFIDlist ();
141142 break ;
142143 case 0 :
144+ preferences.end ();
143145 DeleteAllRFID (); // when unitialized, delete all cardIDs
144146 setItemValue (MENU_RFIDREADER, 0 ); // RFID Reader Disabled
145147 break ;
You can’t perform that action at this time.
0 commit comments