fixed some bugs

This commit is contained in:
2026-06-01 09:34:53 +03:00
parent 9096866812
commit 1f79a43326
12 changed files with 61 additions and 35 deletions

View File

@@ -83,16 +83,19 @@ int main(void){
usart_sendstr(foundid); usart_sendstr(straddr); usart_putbyte('\n');
}
}
IWDG->KR = IWDG_REFRESH;
mlx_process();
if(cartoon) for(int i = 0; i < N_SENSORS; ++i){ // USB-only
if(cartoon && CDCready) for(int i = 0; i < N_SENSORS; ++i){ // USB-only
uint32_t Tnow = mlx_lastimT(i);
if(Tnow != Tlastima[i]){
fp_t *im = mlx_getimage(i);
if(im){
//U(Sensno); UN(i2str(i));
sendfun_t cursender = get_sender();
set_sender(USB_sendstr);
U(Timage); USB_putbyte('0'+i); USB_putbyte('='); UN(u2str(Tnow));
drawIma(im);
Tlastima[i] = Tnow;
set_sender(cursender);
}
}
}