Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Some changes for readability #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
General Readability
  • Loading branch information
technogeek157 authored Jan 18, 2019
commit 81a2e71a1b7ce16ec207dabbae485356330e6bec
8 changes: 4 additions & 4 deletions Assets/WRMHL/Scripts/wrmhlRead.cs
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

/*
This script is used to read all the data coming from the device. For instance,
If arduino send ->
If arduino sends ->
{"1",
"2",
"3",}
@@ -13,7 +13,7 @@ If arduino send ->
"2", for the second call
"3", for the thirst call

This is the perfect script for integration that need to avoid data loss.
This is the perfect script for integrations that need to avoid data loss.
If you need speed and low latency take a look to wrmhlReadLatest.
*/

@@ -42,10 +42,10 @@ void Start () {

// Update is called once per frame
void Update () {
print (myDevice.readQueue () ); // myDevice.read() return the data coming from the device using thread.
print (myDevice.readQueue () ); // myDevice.read() returns the data coming from the device using thread.
}

void OnApplicationQuit() { // close the Thread and Serial Port
void OnApplicationQuit() { // closes the Thread and Serial Port
myDevice.close();
}
}