fw: Remove leftover debug usage of puts/readselect/read

This commit is contained in:
Mikael Ågren 2025-04-09 15:45:58 +02:00
parent 3e34b32096
commit abc1fc8280
No known key found for this signature in database
GPG key ID: E02DA3D397792C46

View file

@ -506,26 +506,6 @@ int main(void)
scramble_ram(); scramble_ram();
// TODO Remove
// Wait for terminal program and a character to be typed
/*
enum ioend endpoint = IO_NONE;
uint8_t available = 0;
uint8_t in = 0;
if (readselect(IO_CDC, &endpoint, &available) < 0) {
// readselect failed! I/O broken? Just redblink.
assert(1 == 2);
}
if (read(IO_CDC, &in, 1, 1) < 0) {
// read failed! I/O broken? Just redblink.
assert(1 == 2);
}
*/
// TODO end of remove block
if (part_table_read(&part_table_storage) != 0) { if (part_table_read(&part_table_storage) != 0) {
// Couldn't read or create partition table // Couldn't read or create partition table
assert(1 == 2); assert(1 == 2);
@ -571,7 +551,7 @@ int main(void)
if (ctx.flash_slot != 1) { if (ctx.flash_slot != 1) {
if (mgmt_app_init(ctx.digest) != 0) { if (mgmt_app_init(ctx.digest) != 0) {
puts(IO_CDC, "app not allowed!\r\n"); debug_puts("app not allowed!\n");
assert(1 == 2); assert(1 == 2);
} }
} }