mirror of
https://github.com/marqs85/ossc
synced 2026-11-04 14:17:25 +03:00
fix unwanted timer restart
This commit is contained in:
1 parent
e4cec87bec
commit
7f75717ecb
2 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user