Due script fixes
Rust/va108xx-hal/pipeline/pr-main This commit looks good Details
Rust/va108xx-hal/pipeline/head This commit looks good Details

This commit is contained in:
Robin Müller 2021-12-20 23:39:36 +01:00
parent b04159912f
commit 0b4408cf8a
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
1 changed files with 4 additions and 1 deletions

View File

@ -43,10 +43,13 @@ void loop() {
// send data only when you receive data:
if (SEND_MODE == SendModes::ONLY_WRITE or SEND_MODE == SendModes::WRITE_READ) {
Serial.println("Sending string..");
Serial1.write(STRINGS[STRING_IDX].c_str());
if(STRING_MODE == StringModes::VARIABLE) {
STRING_IDX += 1;
if(STRING_IDX > 3) {
STRING_IDX = 0;
}
}
Serial1.write(STRINGS[STRING_IDX].c_str());
}
if(
SEND_MODE == SendModes::WRITE_READ or