iButton, RFID: rc-59 fixes (#1291)
* iButton: correct rename logic * LFRFID: remove debug info, correct text
This commit is contained in:
		| @@ -81,7 +81,7 @@ void LfRfidAppSceneReadSuccess::on_enter(LfRfidApp* app, bool /* need_restore */ | ||||
|     case LfrfidKeyType::KeyIoProxXSF: | ||||
|         line_1_text->set_text("HEX:", 65, 23, 0, AlignRight, AlignBottom, FontSecondary); | ||||
|         line_2l_text->set_text("FC:", 65, 35, 0, AlignRight, AlignBottom, FontSecondary); | ||||
|         line_2r_text->set_text("V:", 95, 35, 0, AlignRight, AlignBottom, FontSecondary); | ||||
|         line_2r_text->set_text("VС:", 95, 35, 0, AlignRight, AlignBottom, FontSecondary); | ||||
|         line_3_text->set_text("Card:", 65, 47, 0, AlignRight, AlignBottom, FontSecondary); | ||||
|  | ||||
|         for(uint8_t i = 0; i < app->worker.key.get_type_data_count(); i++) { | ||||
|   | ||||
| @@ -1,23 +1,10 @@ | ||||
| #include "lfrfid_app_scene_save_data.h" | ||||
| #include <dolphin/dolphin.h> | ||||
|  | ||||
| static void print_buffer(const uint8_t* buffer) { | ||||
|     for(uint8_t i = 0; i < LFRFID_KEY_SIZE; i++) { | ||||
|         printf("%02X", buffer[i]); | ||||
|     } | ||||
| } | ||||
|  | ||||
| void LfRfidAppSceneSaveData::on_enter(LfRfidApp* app, bool need_restore) { | ||||
|     auto byte_input = app->view_controller.get<ByteInputVM>(); | ||||
|     RfidKey& key = app->worker.key; | ||||
|  | ||||
|     printf("k: "); | ||||
|     print_buffer(key.get_data()); | ||||
|     printf(" o: "); | ||||
|     print_buffer(old_key_data); | ||||
|     printf(" n: "); | ||||
|     print_buffer(new_key_data); | ||||
|     printf("\r\n"); | ||||
|     if(need_restore) printf("restored\r\n"); | ||||
|  | ||||
|     if(need_restore) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user