Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmetic changes #231

Merged
merged 5 commits into from
Jan 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions src/config.esp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ bool ICACHE_FLASH_ATTR loadConfiguration()
rfidss = hardware["sspin"];
setupPN532Reader(rfidss);
}
#ifndef DEBUG
if (readerType>2) Serial.begin(9600);
#endif
#endif
autoRestartIntervalSeconds = general["restart"];
wifiTimeout = network["offtime"];
Expand Down
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#define VERSION "1.0.0-rc3"

#include "Arduino.h"
#include <ESP8266WiFi.h>
Expand Down Expand Up @@ -163,7 +164,8 @@ void ICACHE_FLASH_ATTR setup()
Serial.begin(9600);
Serial.println();

Serial.println(F("[ INFO ] ESP RFID v0.9"));
Serial.print(F("[ INFO ] ESP RFID v"));
Serial.println(VERSION);

uint32_t realSize = ESP.getFlashChipRealSize();
uint32_t ideSize = ESP.getFlashChipSize();
Expand Down
2 changes: 1 addition & 1 deletion src/rfid.esp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void ICACHE_FLASH_ATTR rfidloop()
cooldown = millis() + 2000;
#ifdef DEBUG
Serial.print(F("[ INFO ] PICC's UID: "));
Serial.println(uid);
Serial.print(uid);
#endif
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/rfid125kHz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ String RFID_Reader::GetHexID()
uint8_t b[5];
memcpy(b, &new_ID, 5);
char buf[11];
sprintf(buf,"%02x%02x%02x%02x%02x%c",b[4],b[3],b[2],b[1],b[0],'\0');
sprintf(buf,"%02x%02x%02x%02x%02x",b[4],b[3],b[2],b[1],b[0]);
lasttagtype = tagtype;
data_available = false;
return String(buf);
Expand Down
16 changes: 8 additions & 8 deletions src/webh/esprfid.htm.gz.h

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions src/webh/esprfid.js.gz.h

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/webh/index.html.gz.h

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions src/webh/required.css.gz.h

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions src/webh/required.js.gz.h

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/websrc/js/esprfid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var version = "1.0.0-rc2";
var version = "";

var websock = null;
var wsUri = "ws:https://" + window.location.hostname + "/ws";
Expand Down Expand Up @@ -544,6 +544,7 @@ function colorStatusbar(ref) {


function listStats() {
version = ajaxobj.version;
document.getElementById("chip").innerHTML = ajaxobj.chipid;
document.getElementById("cpu").innerHTML = ajaxobj.cpu + " Mhz";
document.getElementById("uptime").innerHTML = ajaxobj.uptime;
Expand Down
1 change: 1 addition & 0 deletions src/wsResponses.esp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ void ICACHE_FLASH_ATTR sendStatus() {
root["availspiffs"] = fsinfo.totalBytes - fsinfo.usedBytes;
root["spiffssize"] = fsinfo.totalBytes;
root["uptime"] = NTP.getDeviceUptimeString();
root["version"] = VERSION;

if (inAPMode) {
wifi_get_ip_info(SOFTAP_IF, &info);
Expand Down