fix unwanted timer restart

This commit is contained in:
marqs committed 2024-07-14 22:30:38 +03:00
1 parent e4cec87bec
commit 7f75717ecb
2 files changed
+3 -3

No files matched your search

+1 -2
View File
@@ -58,8 +58,7 @@ inline void SPI_Freq_Low (void) {
int SPI_Timer_On (WORD ms) {
if (!sd_timer_ts) {
sd_timer_ts = ms*(ALT_CPU_FREQ/1000);
alt_timestamp_start();
sd_timer_ts = alt_timestamp() + ms*(TIMER_0_FREQ/1000);
return 0;
}
return 1;