Updated streaming scripts. Compiler compatibility for _delay_ms().
- Moved obsolete streaming scripts to folder for reference. - Added a more complex Python streaming script which uses the serial buffer as an additional streaming buffer. - Removed all references to a _delay_ms(variable) to allow for better porting across different compilers.
This commit is contained in:
@@ -35,7 +35,7 @@ void mc_dwell(double seconds)
|
||||
{
|
||||
uint16_t i = floor(seconds);
|
||||
st_synchronize();
|
||||
_delay_ms(floor(1000*(seconds-i))); // Delay millisecond remainder
|
||||
delay_ms(floor(1000*(seconds-i))); // Delay millisecond remainder
|
||||
while (i > 0) {
|
||||
_delay_ms(1000); // Delay one second
|
||||
i--;
|
||||
|
||||
Reference in New Issue
Block a user