sync
This commit is contained in:
@@ -35,17 +35,7 @@ void print_device_id(void) {
|
||||
|
||||
static int print_custom_banner(void)
|
||||
{
|
||||
|
||||
printk("\x1b[44m\x1b[2J\x1b[H");
|
||||
|
||||
// Oberer Rahmen
|
||||
printk("\x1b[1;37m┌───────────────────────────────────────────┐\n");
|
||||
printk("│ Edis Buzzer Version: %-20s │\n", APP_VERSION_STRING);
|
||||
printk("├───────────────────────────────────────────┤\n");
|
||||
printk("│ \x1b[22;37mZephyr Version: \x1b[1;37m%-20s │\n", KERNEL_VERSION_STRING);
|
||||
printk("│ \x1b[22;37mNCS Version: \x1b[1;37m%-20s │\n", NCS_VERSION_STRING);
|
||||
printk("└───────────────────────────────────────────┘\x1b[0m\n");
|
||||
|
||||
printk("*** Edis Buzzer Version: " APP_VERSION_STRING " ***" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -141,6 +141,7 @@ int put_binary_file(const char *filename, ssize_t filesize, uint32_t expected_cr
|
||||
|
||||
bytes_written += written;
|
||||
retry_count = 0;
|
||||
usb_resume_rx();
|
||||
}
|
||||
uint32_t duration = k_uptime_get_32() - start;
|
||||
uint32_t kb_per_s = (filesize * 1000) / (duration * 1024 +1);
|
||||
|
||||
@@ -105,6 +105,7 @@ void usb_flush_rx(void)
|
||||
|
||||
// Semaphore zurücksetzen, falls sie gesetzt war
|
||||
k_sem_reset(&usb_rx_sem);
|
||||
usb_resume_rx();
|
||||
}
|
||||
|
||||
static void usb_status_cb(enum usb_dc_status_code cb_status, const uint8_t *param)
|
||||
|
||||
Reference in New Issue
Block a user