Skip to content

Commit

Permalink
Merge pull request esprfid#231 from Pako2/dev
Browse files Browse the repository at this point in the history
Cosmetic changes
  • Loading branch information
omersiar committed Jan 21, 2019
2 parents 041d5cb + 6caf2ec commit fded1e4
Show file tree
Hide file tree
Showing 11 changed files with 119 additions and 113 deletions.
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

0 comments on commit fded1e4

Please sign in to comment.