Merge branch 'main' of gitlab.ibr.cs.tu-bs.de:vss/teaching/ss25/v_bsb1/Gruppe_018

main
Eggert Jung 5 months ago
commit 9af6bd4455

@ -34,7 +34,6 @@ void activeWaitDelay(uint64_t cycles) {
void Application::action() { // NOLINT void Application::action() { // NOLINT
uint16_t cnt = 0; uint16_t cnt = 0;
while (1) { while (1) {
Core::Interrupt::disable();
koutlock.lock(); koutlock.lock();
while(text[cnt++] != '\n'){ while(text[cnt++] != '\n'){
kout << text[cnt-1]; kout << text[cnt-1];
@ -46,6 +45,5 @@ void Application::action() { // NOLINT
if(cnt >= sizeof(text)-1) if(cnt >= sizeof(text)-1)
cnt=0; cnt=0;
Core::Interrupt::enable();
} }
} }

Loading…
Cancel
Save