|
|
@ -61,7 +61,6 @@ static void text_input_callback(void* ctx) {
|
|
|
|
CaesarState* caesar_state = acquire_mutex((ValueMutex*)ctx, 25);
|
|
|
|
CaesarState* caesar_state = acquire_mutex((ValueMutex*)ctx, 25);
|
|
|
|
FURI_LOG_D("caesar_cipher", "Input text: %s", caesar_state->input);
|
|
|
|
FURI_LOG_D("caesar_cipher", "Input text: %s", caesar_state->input);
|
|
|
|
// this is where we build the output.
|
|
|
|
// this is where we build the output.
|
|
|
|
//char upper[TEXT_BUFFER_SIZE];
|
|
|
|
|
|
|
|
string_to_uppercase(caesar_state->input);
|
|
|
|
string_to_uppercase(caesar_state->input);
|
|
|
|
FURI_LOG_D("caesar_cipher", "Upper text: %s", caesar_state->input);
|
|
|
|
FURI_LOG_D("caesar_cipher", "Upper text: %s", caesar_state->input);
|
|
|
|
build_output(caesar_state->input, caesar_state->output);
|
|
|
|
build_output(caesar_state->input, caesar_state->output);
|
|
|
@ -139,7 +138,6 @@ int32_t caesar_cipher_app() {
|
|
|
|
view_dispatcher_switch_to_view(caesar_state->view_dispatcher, 0);
|
|
|
|
view_dispatcher_switch_to_view(caesar_state->view_dispatcher, 0);
|
|
|
|
view_dispatcher_run(caesar_state->view_dispatcher);
|
|
|
|
view_dispatcher_run(caesar_state->view_dispatcher);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
furi_record_close("gui");
|
|
|
|
furi_record_close("gui");
|
|
|
|
delete_mutex(&state_mutex);
|
|
|
|
delete_mutex(&state_mutex);
|
|
|
|
caesar_cipher_state_free(caesar_state);
|
|
|
|
caesar_cipher_state_free(caesar_state);
|
|
|
|