Skip to content

Commit

Permalink
fixed issue. add/edit manually live
Browse files Browse the repository at this point in the history
  • Loading branch information
zinongli committed Jul 28, 2024
1 parent 6a752e9 commit c0cc986
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions t5577_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,16 @@ void uint32_to_byte_buffer(uint32_t block_data, uint8_t byte_buffer[4]) {
byte_buffer[3] = block_data & 0xFF;
}

uint32_t byte_buffer_to_uint32(const uint8_t byte_buffer[4]) {
return ((uint32_t)(byte_buffer[0] << 24)) ;
uint32_t byte_buffer_to_uint32(uint8_t byte_buffer[4]) {
uint32_t block_data = 0;
block_data |= ((uint32_t)byte_buffer[0] << 24);
block_data |= ((uint32_t)byte_buffer[1] << 16);
block_data |= ((uint32_t)byte_buffer[2] << 8);
block_data |= ((uint32_t)byte_buffer[3]);
return block_data;
}


static void t5577_writer_content_byte_input_confirmed(void* context) {
T5577WriterApp* app = (T5577WriterApp*)context;
T5577WriterModel* my_model = view_get_model(app->view_write);
Expand Down

0 comments on commit c0cc986

Please sign in to comment.