Skip to content

Commit

Permalink
Merge pull request #1 from BobGlicksman/MODDisplay
Browse files Browse the repository at this point in the history
Mod display
  • Loading branch information
jschrempp authored Aug 9, 2022
2 parents fe8cf8b + ccd2833 commit 63b0c1e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
Binary file not shown.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Maker Nexus.

This is the production version for Maker Nexus. It was copied from https://github.com/TeamPracticalProjects/MN_ACL

This repository has been updated to support MOD check-in, status display, and management. The overview
document is supplemented with an addendum that describes the new MOD support functionality that
has been added to this repository. See the document "RFID_MOD_Addendum_to_Overview_Document" in the
Documents folder.

Each member is issued an RFID card that has been prepared to identify the member
and to ensure that cards can be revoked and/or replaced. Membership information relevant
to card issuance and to member check-in and permission to access certain equipment
Expand Down
5 changes: 5 additions & 0 deletions Software/Particle_SW/stationfirmware/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"particle.targetDevice": "mn_devCamel",
"particle.firmwareVersion": "3.3.0",
"particle.targetPlatform": "argon"
}
9 changes: 5 additions & 4 deletions Software/Particle_SW/stationfirmware/src/checkinfirmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@
* 2.5 Changed type of "data" parameter in firmwareupdatehandler() from "int" to "unsigned int". The
* code now compiles under OS 3.1 and OS 3.2
* 2.6 Added Manager on Duty functionality. See design docs.
* 2.7 Changed state of green button to correspond to the production PCB
************************************************************************/
#define MN_FIRMWARE_VERSION 2.6
#define MN_FIRMWARE_VERSION 2.7

// Our UTILITIES
#include "mnutils.h"
Expand Down Expand Up @@ -251,7 +252,7 @@ char * strcat_safe( const char *str1, const char *str2 )
// Called by Particle OS when a firmware update is about to begin
//
// Will put a message on the LCD screen and turn on the red LED
void firmwareupdatehandler(system_event_t event, int data) {
void firmwareupdatehandler(system_event_t event, unsigned int data) {
switch (data) {
case firmware_update_begin:
writeToLCD("Firmware update","in progress");
Expand Down Expand Up @@ -2511,7 +2512,7 @@ void setup() {
pinMode(REJECT_LED, OUTPUT);
pinMode(BUZZER_PIN, OUTPUT);
pinMode(ONBOARD_LED_PIN, OUTPUT); // the D7 LED
pinMode(MGRONDUTY_PIN, INPUT_PULLDOWN); // Red button, toggle
pinMode(MGRONDUTY_PIN, INPUT_PULLUP); // green button

digitalWrite(READY_LED, LOW);
digitalWrite(ADMIT_LED, LOW);
Expand Down Expand Up @@ -2588,7 +2589,7 @@ void loop() {
static mlsState mainloopState = mlsASKFORSTATIONCONFIG;
static unsigned long processStart = 0;

if (digitalRead(MGRONDUTY_PIN) == HIGH) {
if (digitalRead(MGRONDUTY_PIN) == LOW) { // XXX changed sense state for pullup
digitalWrite(ADMIT_LED, HIGH);
g_MgrOnDutySwitch = true;
} else {
Expand Down

0 comments on commit 63b0c1e

Please sign in to comment.