U.S. Surgeon General Jerome Adams will fight a misdemeanor charge in Hawaii after he was accused of breaking COVID-19 guidelines while visiting the state to help deal with the coronavirus.

Adams traveled in August to Oahu to assist with surge testing as cases spiked. A Honolulu police officer cited him for sightseeing in a closed park with an aide and at least one other man in violation of a local emergency order.

Attorney Michael Green told the judge Wednesday that his client would plead not guilty, but the judge said the plea could not be entered until the surgeon general decided whether he would waive his right to a jury trial.

In this Aug. 27, photo U.S. Surgeon General Vice Adm. Jerome Adams speaks during a press conference on the second day of surge COVID-19 testing, at Kalakaua District Park in Honolulu. (Jamm Aquino/Honolulu Star-Advertiser via AP,File)

In this Aug. 27, photo U.S. Surgeon General Vice Adm. Jerome Adams speaks during a press conference on the second day of surge COVID-19 testing, at Kalakaua District Park in Honolulu. (Jamm Aquino/Honolulu Star-Advertiser via AP,File)

Green told the court that Adams would not waive that right.

An  officer spotted Adams and two men "looking at the view taking pictures," at Kualoa Regional Park on Oahu's northeastern coast, the citation said.

SURGEON GENERAL ADAMS CITED FOR VIOLATING COVID-19 GUIDELINES IN HAWAII WHILE HELPING WITH VIRUS SPIKE

Adams explained his visit to the officer and said he didn't know parks were closed. At the time, Honolulu Mayor Kirk Caldwell had shuttered them to prevent crowds from gathering.

After the citation, Honolulu attorney Lex Smith said Adams had “accidentally” violated the mayor’s order.

In this April 22, photo President Trump watches as U.S. Surgeon General Jerome Adams holds up his face mask at a coronavirus briefing in the White House. Adams was cited for being in a closed Hawaii park in August while in the islands helping with surge testing amid a spike in coronavirus cases. (AP Photo/Alex Brandon, File)

In this April 22, photo President Trump watches as U.S. Surgeon General Jerome Adams holds up his face mask at a coronavirus briefing in the White House. Adams was cited for being in a closed Hawaii park in August while in the islands helping with surge testing amid a spike in coronavirus cases. (AP Photo/Alex Brandon, File)

“During his visit to Oahu, the surgeon general was cited for accidentally violating the mayor’s emergency order, due to his misunderstanding of the law,” Smith said at the time. “He has not asked for, nor has he received, any special treatment in connection with this citation, and will respond to it appropriately.”

Violating the COVID-19 orders is punishable as a misdemeanor, with fines of up to $5,000, up to a year in jail, or both.

CLICK HERE TO GET THE FOX NEWS APP

The judge set Adams’ arraignment for Nov. 2.

Days after the citation, Adams appeared alongside Caldwell to announce federal assistance for surge testing in the city.

Separately, the surgeon general made an appeal to the public Wednesday urging Americans to wear face masks when social distancing is not possible.

"Your mask protects me, and my mask protects you," he wrote in a series of tweets. "Masks keep our country open!"

The Associated Press contributed to this report.