Optimising

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-12-23 16:10:33 +01:00
parent cc15ac6159
commit e27c2f504e
5 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -3,6 +3,8 @@
#include "Tuner_Patch_Lithio_V205_p512.h"
#include <Wire.h>
bool Data_Accelerator = false;
const unsigned char tuner_init_tab[] PROGMEM = {
7, 0x20, 0x0B, 0x01, 0x03, 0x98, 0x00, 0x00,
5, 0x20, 0x14, 0x01, 0x00, 0x00,
@@ -72,7 +74,7 @@ bool Tuner_WriteBuffer(unsigned char *buf, uint16_t len) {
Wire.beginTransmission(0x64);
for (uint16_t i = 0; i < len; i++) Wire.write(buf[i]);
uint8_t r = Wire.endTransmission();
delayMicroseconds(100);
if (!Data_Accelerator) delay(2);
return (r == 0) ? 1 : 0;
}