Переглянути джерело

default to only writing epc

frux-c 1 рік тому
батько
коміт
b21d9487c5
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      uhf_module.c

+ 3 - 2
uhf_module.c

@@ -12,7 +12,8 @@ static M100ResponseType setup_and_send_rx(M100Module* module, uint8_t* cmd, size
     // send cmd
     // send cmd
     uhf_uart_send_wait(uart, cmd, cmd_length);
     uhf_uart_send_wait(uart, cmd, cmd_length);
     // wait for response by polling
     // wait for response by polling
-    while(!uhf_is_buffer_closed(buffer) && !uhf_uart_tick(uart)) {}
+    while(!uhf_is_buffer_closed(buffer) && !uhf_uart_tick(uart)) {
+    }
     // reset tick
     // reset tick
     uhf_uart_tick_reset(uart);
     uhf_uart_tick_reset(uart);
     // Validation Checks
     // Validation Checks
@@ -45,7 +46,7 @@ M100Module* m100_module_alloc() {
     module->region = DEFAULT_WORKING_REGION;
     module->region = DEFAULT_WORKING_REGION;
     module->info = m100_module_info_alloc();
     module->info = m100_module_info_alloc();
     module->uart = uhf_uart_alloc();
     module->uart = uhf_uart_alloc();
-    module->write_mask = WRITE_EPC | WRITE_TID | WRITE_USER | WRITE_RFU;
+    module->write_mask = WRITE_EPC;
     return module;
     return module;
 }
 }